Updating a Pod Identity Association
Function
This API is used to update the IAM agency associated with a specified pod identity association.
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
PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/pod-identity-associations/{association_id}
| 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 |
| association_id | Yes | String | Definition ID of a pod identity association. For details about how to obtain the value, see How to Obtain Parameters in the API URI. Constraints N/A Range N/A Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Definition Type (or format) of the request body. The default value is application/json. Other values of this field will be provided for specific APIs, if any. Constraints GET requests are not validated. Default Value N/A |
| 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 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| agencyName | Yes | String | Definition Name of the agency to be associated with a pod identity association. The agency can be a general agency or a trust agency. Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 200
| 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
Update a pod identity association.
PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/pod-identity-associations/{association_id}
{
"agencyName" : "example-agency"
} Example Responses
Status code: 200
The specified pod identity association has been updated.
{
"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 | The specified pod identity association has been updated. |
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