public/portworx/platform/iam/apiv1/iam.proto (version not set)
Download OpenAPI specification:Download
ListIAM API lists the role bindings.
query Parameters
actorId | string Actor ID for which the IAM should be listed. |
accountId | string Account UID for which the IAM should be listed. |
tenantId | string Tenant UID for which the IAM should be listed. |
projectId | string Project UID for which the IAM should be listed. |
sort.sortBy | string Default: "FIELD_UNSPECIFIED" Enum: "FIELD_UNSPECIFIED" "EMAIL" 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
{- "iam": [
- {
- "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": {
- "actorId": "string",
- "actorType": "string",
- "actorEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
CreateIAM API creates a new IAM role-binding.
Request Body schema: application/jsonrequired
IAM to be created
object (v1Meta) Meta holds general resource metadata. | |
object (v1Config) Config represents the details of the data for IAM across different levels. |
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": {
- "actorId": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "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": {
- "actorId": "string",
- "actorType": "string",
- "actorEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}
}
}
GetIAM API returns the info about IAM for given IAM id.
path Parameters
actorId required | string Actor ID for which the details need 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": {
- "actorId": "string",
- "actorType": "string",
- "actorEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}
}
}
GrantIAM API creates new IAM role-binding at tenant, project and account level.
path Parameters
actorId required | string actorId is UID of user/serviceAccount for we want to add new role in the IAM |
Request Body schema: application/jsonrequired
accountId | string Account UID under which user wants to add role binding. |
tenantId | string Tenant UID under which user wants to add role binding. |
projectId | string Project UID under which user wants to add role binding. |
object (v1AccessPolicy) Access Policy controls access to control plane resources. With IAM, one can centrally manage permissions that control which resources users can access. |
Responses
Request samples
- Payload
{- "accountId": "string",
- "tenantId": "string",
- "projectId": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}
}
Response samples
- 200
- default
{- "message": "string"
}
RevokeIAM API delete IAM role-binding at tenant, project and account level.
path Parameters
actorId required | string actorId is UID of user/serviceAccount for we want to revoke role in the IAM |
Request Body schema: application/jsonrequired
accountId | string Account UID under which user wants to delete role . |
tenantId | string Tenant UID under which user wants to delete role . |
projectId | string Project UID under which user wants to delete role . |
object (v1AccessPolicy) Access Policy controls access to control plane resources. With IAM, one can centrally manage permissions that control which resources users can access. |
Responses
Request samples
- Payload
{- "accountId": "string",
- "tenantId": "string",
- "projectId": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}
}
Response samples
- 200
- default
{- "message": "string"
}
UpdateIAM API updates IAM with the new set of role bindings. The request replaces the existing set of bindings.
path Parameters
iam.meta.uid required | string UID of the resource of the format |
Request Body schema: application/jsonrequired
IAM to be updated.
object (Metadata for IAM.) Metadata for IAM. | |
object (v1Config) Config represents the details of the data for IAM across different levels. |
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": {
- "actorId": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "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": {
- "actorId": "string",
- "actorType": "string",
- "actorEmail": "string",
- "accessPolicy": {
- "globalScope": [
- "string"
], - "account": [
- "string"
], - "tenant": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "project": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
], - "namespace": [
- {
- "roleName": "string",
- "resourceIds": [
- "string"
]
}
]
}
}
}