Skip to content

images

Contents

ImageService

ImageService serves image resource APIs. This is a service endpoint which allows PDS users to get information of all supported data service version's images.

GetImage

rpc GetImage(GetImageRequest) Image

GetImage API returns the information about the specified image.

ListImages

rpc ListImages(ListImagesRequest) ListImagesResponse

ListImages API lists the data service images.

Messages

GetImageRequest

Request to get the image details.

Field Type Description
id string UID of the image.

Image

Resource representing the data service image.

Field Type Description
meta public.portworx.common.v1.Meta Metadata of the resource.
info Info Information related to the data service image.

Info

Information related to the data service image.

Field Type Description
references References Reference of the image.
registry string Image registry where the image is stored.
namespace string Image registry namespace where the image is stored.
tag string Tag associated with the image.
build string Build version of the image.
tls_support bool Flag indicating if TLS is supported for a data service using this image.
capabilities map Info.CapabilitiesEntry Capabilities associated with this image.
additional_images map Info.AdditionalImagesEntry Additional images associated with this data service image.

Info.AdditionalImagesEntry

Field Type Description
key string none
value string none

Info.CapabilitiesEntry

Field Type Description
key string none
value string none

ListImagesRequest

Request to list images for specified data service, version.

Field Type Description
latest bool Only include the latest image for each data service version id.
data_service_id string UID of the data service.
data_service_version_id string UID of the data service version.
sort public.portworx.common.v1.Sort Sorting details using which requested list of data service images to be sorted.
pagination public.portworx.common.v1.PageBasedPaginationRequest Pagination parameters for listing data service images.
enabled ListImagesRequest.Enabled Filter images based on enabled flag.

ListImagesResponse

Response to list images request.

Field Type Description
images repeated Image List of images.
pagination public.portworx.common.v1.PageBasedPaginationResponse Pagination metadata for this response. (-- api-linter: core::0132::response-unknown-fields=disabled aip.dev/not-precedent: We need this field for pagination. --)

References

References to other resources.

Field Type Description
data_service_id string UID of the Data service.
data_service_version_id string UID of the Data service version.

Enums

ListImagesRequest.Enabled

Enabled indicate either list all, only enabled or only disabled images.

Name Number Description
ENABLED_UNSPECIFIED 0 List all images.
TRUE 1 List only enabled images.
FALSE 2 List only disabled images.

Scalar Value Types

.proto Type Notes C++ Type Java Type Python Type

double
double double float

float
float float float

int32
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int

int64
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long

uint32
Uses variable-length encoding. uint32 int int/long

uint64
Uses variable-length encoding. uint64 long int/long

sint32
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int

sint64
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long

fixed32
Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int

fixed64
Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long

sfixed32
Always four bytes. int32 int int

sfixed64
Always eight bytes. int64 long int/long

bool
bool boolean boolean

string
A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode

bytes
May contain any arbitrary sequence of bytes. string ByteString str