public/portworx/platform/targetcluster/apiv1/targetcluster.proto (version not set)
Download OpenAPI specification:Download
List API lists all the target clusters for a tenant
query Parameters
tenantId required | string List target clusters associated with a tenant. |
pagination.pageNumber | string <int64> Page number is the page number to return based on the size. |
pagination.pageSize | string <int64> Page size is the maximum number of records to include per page. |
sort.sortBy | string Default: "FIELD_UNSPECIFIED" Enum: "FIELD_UNSPECIFIED" "NAME" "CREATED_AT" "UPDATED_AT" "PHASE" Name of the attribute to sort results by.
|
sort.sortOrder | string Default: "VALUE_UNSPECIFIED" Enum: "VALUE_UNSPECIFIED" "ASC" "DESC" Order of sorting to be applied on requested list. If sort_by having some value and sort_order is not provided, by default ascending order will be used to sort the list.
|
respData | string Default: "RESP_DATA_UNSPECIFIED" Enum: "RESP_DATA_UNSPECIFIED" "INDEX" "LITE" "FULL" Response data flags for listing target clusters.
|
Responses
Response samples
- 200
- default
{- "clusters": [
- {
- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": { },
- "status": {
- "metadata": {
- "kubeServerVersion": "string",
- "kubePlatform": "TYPE_UNSPECIFIED",
- "pxeMetadata": {
- "csiEnabled": true,
- "serviceName": "string",
- "serviceNamespace": "string",
- "version": "string",
- "securityEnabled": true
}
}, - "phase": "PHASE_UNSPECIFIED",
- "lastStatusUpdateTime": "2019-08-24T14:15:22Z",
- "platformAgent": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "applications": {
- "property1": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "property2": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
GetTargetCluster API returns the info about the TargetCluster for given name.
path Parameters
id required | string Unique identifier of the cluster whose details needs to be fetched. |
Responses
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": { },
- "status": {
- "metadata": {
- "kubeServerVersion": "string",
- "kubePlatform": "TYPE_UNSPECIFIED",
- "pxeMetadata": {
- "csiEnabled": true,
- "serviceName": "string",
- "serviceNamespace": "string",
- "version": "string",
- "securityEnabled": true
}
}, - "phase": "PHASE_UNSPECIFIED",
- "lastStatusUpdateTime": "2019-08-24T14:15:22Z",
- "platformAgent": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "applications": {
- "property1": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "property2": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}
}
}
}
UpdateTargetCluster API updates the metadata(e.g name/labels/annotations and desc) of the specified TargetCluster.
path Parameters
targetCluster.meta.uid required | string UID of the resource of the format |
Request Body schema: application/jsonrequired
Target cluster details.
object (Metadata of the target cluster(Resource Meta).) Metadata of the target cluster(Resource Meta). | |
config | object (platformTargetClusterv1Config) Desired configuration of the Target Cluster. |
object (platformTargetClusterv1Status) Status of the Target Cluster. |
Responses
Request samples
- Payload
{- "meta": {
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}
}, - "config": { },
- "status": {
- "metadata": {
- "kubeServerVersion": "string",
- "kubePlatform": "TYPE_UNSPECIFIED",
- "pxeMetadata": {
- "csiEnabled": true,
- "serviceName": "string",
- "serviceNamespace": "string",
- "version": "string",
- "securityEnabled": true
}
}, - "phase": "PHASE_UNSPECIFIED",
- "lastStatusUpdateTime": "2019-08-24T14:15:22Z",
- "platformAgent": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "applications": {
- "property1": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "property2": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}
}
}
}
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": { },
- "status": {
- "metadata": {
- "kubeServerVersion": "string",
- "kubePlatform": "TYPE_UNSPECIFIED",
- "pxeMetadata": {
- "csiEnabled": true,
- "serviceName": "string",
- "serviceNamespace": "string",
- "version": "string",
- "securityEnabled": true
}
}, - "phase": "PHASE_UNSPECIFIED",
- "lastStatusUpdateTime": "2019-08-24T14:15:22Z",
- "platformAgent": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "applications": {
- "property1": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "property2": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}
}
}
}
List API lists all the target clusters for a tenant
Request Body schema: application/jsonrequired
ListTargetClusterRequest is a request message to the List TargetCluster API.
tenantId required | string List target clusters associated with a tenant. |
object (v1PageBasedPaginationRequest) Request parameters for page-based pagination. | |
object (v1Selector) Selector is used to query resources using the associated labels or field names. | |
object (v1Selector) Selector is used to query resources using the associated labels or field names. | |
object (v1ResourceSelector) ResourceSelector is used to query resources using the associated infra resources. | |
object (v1Sort) The details of the attribute for which the requested list of resource to be sorted. | |
respData | string (v1RespData) Default: "RESP_DATA_UNSPECIFIED" Enum: "RESP_DATA_UNSPECIFIED" "INDEX" "LITE" "FULL" RespData provides flags which provides info about the fields that should be populated in the response.
|
Responses
Request samples
- Payload
{- "tenantId": "string",
- "pagination": {
- "pageNumber": "string",
- "pageSize": "string"
}, - "labelSelector": {
- "filters": [
- {
- "key": "string",
- "op": "OPERATOR_UNSPECIFIED",
- "values": [
- "string"
]
}
]
}, - "fieldSelector": {
- "filters": [
- {
- "key": "string",
- "op": "OPERATOR_UNSPECIFIED",
- "values": [
- "string"
]
}
]
}, - "infraResourceSelector": {
- "infraResourceFilters": [
- {
- "resourceType": "TYPE_UNSPECIFIED",
- "op": "OPERATOR_UNSPECIFIED",
- "values": [
- "string"
]
}
]
}, - "sort": {
- "sortBy": "FIELD_UNSPECIFIED",
- "sortOrder": "VALUE_UNSPECIFIED"
}, - "respData": "RESP_DATA_UNSPECIFIED"
}
Response samples
- 200
- default
{- "clusters": [
- {
- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": { },
- "status": {
- "metadata": {
- "kubeServerVersion": "string",
- "kubePlatform": "TYPE_UNSPECIFIED",
- "pxeMetadata": {
- "csiEnabled": true,
- "serviceName": "string",
- "serviceNamespace": "string",
- "version": "string",
- "securityEnabled": true
}
}, - "phase": "PHASE_UNSPECIFIED",
- "lastStatusUpdateTime": "2019-08-24T14:15:22Z",
- "platformAgent": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "applications": {
- "property1": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}, - "property2": {
- "version": "string",
- "phase": "PHASE_UNSPECIFIED",
- "health": "HEALTH_UNSPECIFIED"
}
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}