public/portworx/platform/cloudcredential/apiv1/cloudcredential.proto (version not set)
Download OpenAPI specification:Download
List API lists all the cloud credentials for a tenant
query Parameters
tenantId | string Tenant ID for which the credentials will be listed. |
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. |
respData | string Default: "RESP_DATA_UNSPECIFIED" Enum: "RESP_DATA_UNSPECIFIED" "INDEX" "LITE" "FULL" Response data flags for listing cloud credentials.
|
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.
|
Responses
Response samples
- 200
- default
{- "cloudCredentials": [
- {
- "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": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
Get API returns the cloud credential details sans the actual credentials.
path Parameters
id required | string ID of the cloud credential. |
query Parameters
includeConfig | boolean Specifies option to include configuration details excluding sensitive information. |
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": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Update API updates a cloud credential.
path Parameters
id required | string ID of the cloud credential to be updated. |
query Parameters
updateMask | string Specifies the field that should be updated to the value specified in cloud_credentials. |
Request Body schema: application/jsonrequired
Desired cloud credential configuration.
object (v1Meta) Meta holds general resource metadata. | |
object (v1Config) Desired configuration of the Cloud Credential. |
Responses
Request samples
- Payload
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}
}, - "config": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}
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": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}
List API lists all the cloud credentials for a tenant
Request Body schema: application/jsonrequired
Request to list the cloud credentials for a tenant or a project.
tenantId | string Tenant ID for which the credentials will be listed. |
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. | |
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.
|
object (v1Sort) The details of the attribute for which the requested list of resource to be sorted. |
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"
]
}
]
}, - "respData": "RESP_DATA_UNSPECIFIED",
- "sort": {
- "sortBy": "FIELD_UNSPECIFIED",
- "sortOrder": "VALUE_UNSPECIFIED"
}
}
Response samples
- 200
- default
{- "cloudCredentials": [
- {
- "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": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
Create API creates a set of cloud credentials for a tenant.
path Parameters
tenantId required | string The parent tenant id under which cloud credential will be created. |
Request Body schema: application/jsonrequired
Cloud credential configuration.
object (v1Meta) Meta holds general resource metadata. | |
object (v1Config) Desired configuration of the Cloud Credential. |
Responses
Request samples
- Payload
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}
}, - "config": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}
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": {
- "provider": {
- "cloudProvider": "TYPE_UNSPECIFIED"
}, - "azureCredentials": {
- "config/azure/storage_account_name": "string",
- "config/azure/storage_account_key": "string"
}, - "googleCredentials": {
- "config/google/project_id": "string",
- "config/google/json_key": "string"
}, - "s3Credentials": {
- "config/s3/access_key": "string",
- "config/s3/secret_key": "string"
}, - "unstructuredCredentials": {
- "config/unstructured/credential_data": {
- "property1": "string",
- "property2": "string"
}
}
}
}