public/portworx/platform/serviceaccount/apiv1/serviceaccount.proto (version not set)
Download OpenAPI specification:Download
Returns a requested list of service accounts.
query Parameters
tenantId | string id of tenant on which service account should be listed. If not provided, then list will filtered on account id present in the context. |
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.
|
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. |
Responses
Response samples
- 200
- default
{- "serviceAccounts": [
- {
- "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": {
- "clientId": "string",
- "clientSecret": "string",
- "disabled": true
}, - "status": {
- "secretGenerationCount": 0,
- "lastSecretUpdateTime": "2019-08-24T14:15:22Z"
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
Returns a requested service account.
path Parameters
id required | string Unique identifier for the service account to be fetched. |
query Parameters
tenantId | string Tenant id to which a service account is associated. |
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": {
- "clientId": "string",
- "clientSecret": "string",
- "disabled": true
}, - "status": {
- "secretGenerationCount": 0,
- "lastSecretUpdateTime": "2019-08-24T14:15:22Z"
}
}
Updates a service account.
path Parameters
id required | string Unique identifier for the service account. |
Request Body schema: application/jsonrequired
Service account to be updated.
object (v1Meta) Meta holds general resource metadata. | |
object (v1Config) Config clubs attributes represents in detail view for service account. | |
object (serviceaccountv1Status) Status of the service account. |
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": {
- "disabled": true
}, - "status": { }
}
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": {
- "clientId": "string",
- "clientSecret": "string",
- "disabled": true
}, - "status": {
- "secretGenerationCount": 0,
- "lastSecretUpdateTime": "2019-08-24T14:15:22Z"
}
}
Regenerate access token for a service account.
path Parameters
id required | string Unique identifier for the service account. |
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": {
- "clientId": "string",
- "clientSecret": "string",
- "disabled": true
}, - "status": {
- "secretGenerationCount": 0,
- "lastSecretUpdateTime": "2019-08-24T14:15:22Z"
}
}
Create a requested service account.
path Parameters
tenantId required | string The parent tenant under which the service account will be created |
Request Body schema: application/jsonrequired
Service account details.
object (v1Meta) Meta holds general resource metadata. | |
object (v1Config) Config clubs attributes represents in detail view for service account. | |
object (serviceaccountv1Status) Status of the service account. |
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": {
- "disabled": true
}, - "status": { }
}
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": {
- "clientId": "string",
- "clientSecret": "string",
- "disabled": true
}, - "status": {
- "secretGenerationCount": 0,
- "lastSecretUpdateTime": "2019-08-24T14:15:22Z"
}
}
Get access token for a service account.
path Parameters
tenantId required | string ID of the tenant under which the service account was created. |
Request Body schema: application/jsonrequired
clientId | string Unique identifier generated at the time of service account creation. |
clientSecret | string Secret key generated at the time of service account creation. |
Responses
Request samples
- Payload
{- "clientId": "string",
- "clientSecret": "string"
}
Response samples
- 200
- default
{- "token": "string"
}