Querying Pod Identity Associations of a Specified Cluster
Function
This API is used to obtain all pod identity associations in a cluster.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
URI
GET /api/v3/projects/{project_id}/clusters/{cluster_id}/pod-identity-associations
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Details: Project ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. Constraints: None Options: Project IDs of the account Default value: N/A |
| cluster_id | Yes | String | Details: Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. Constraints: None Options: Cluster IDs Default value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Details: Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details, see Obtaining a User Token. Constraints: None Options: N/A Default value: N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| [items] | Array of PodIdentityAssociationResp objects | Definition Pod identity association list Constraints N/A |
| Parameter | Type | Description |
|---|---|---|
| uid | String | Definition UID of a pod identity association Constraints The value cannot be changed. Range N/A Default Value N/A |
| clusterId | String | Definition ID of the cluster that the pod identity association belongs to Constraints The value cannot be changed. Range N/A Default Value N/A |
| namespace | String | Definition Namespace of the service account associated with a pod identity association Constraints The value cannot be changed. Range N/A Default Value N/A |
| serviceAccount | String | Definition Name of the service account associated with a pod identity association Constraints The value cannot be changed. Range N/A Default Value N/A |
| agencyName | String | Definition Name of the agency associated with a pod identity association Constraints N/A Range N/A Default Value N/A |
| tags | Array of ResourceTag objects | Definition Resource tag list of a pod identity association Constraints N/A |
| createdAt | String | Definition Time when a pod identity association was created Constraints N/A Range N/A Default Value N/A |
| modifiedAt | String | Definition Time when a pod identity association was last updated Constraints N/A Range N/A Default Value N/A |
Example Requests
None
Example Responses
Status code: 200
All pod identity associations in the cluster have been obtained.
[ {
"uid" : "402358e8-2e3a-4531-bae7-fe9cbxxxxxx1",
"clusterId" : "402358e8-2e3a-4531-bae7-fe9cbxxxxxx1",
"namespace" : "example-namespace",
"serviceAccount" : "example-serviceaccount",
"agencyName" : "example-agency",
"tags" : [ {
"key" : "example-tag-key",
"value" : "example-tag-val"
} ],
"createdAt" : "",
"modifiedAt" : ""
} ] Status Codes
| Status Code | Description |
|---|---|
| 200 | All pod identity associations in the cluster have been obtained. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot