Updated on 2025-10-24 GMT+08:00

Modifying a Cloud Vendor Account

Function

This API is used to modify the account information of all cloud vendors (such as Alibaba Cloud, AWS, Azure, and Huawei Cloud Stack).

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.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    coc:vendorAccount:update

    Write

    -

    -

    -

    -

URI

PUT /v1/vendor-account/{id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

id

Yes

String

Definition:

Unique ID.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

account_name

No

String

Definition:

Account name

Constraints:

N/A

Value range:

The value is a string. It contains 0 to 64 characters.

Default value:

N/A

ak

No

String

Definition:

AK.

Constraints:

N/A

Value range:

The value is a string. It contains 0 to 64 characters.

Default value:

N/A

sk

No

String

Definition:

SK.

Constraints:

N/A

Value range:

The value is a string. It contains 0 to 64 characters.

Default value:

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

data

String

Definition:

UUID allocated by COC-CMDB.

Value range:

N/A

Example Requests

This API is used to modify a cloud vendor account.

PUT https://{Endpoint}/v1/vendor-account/{id}

{
  "account_name" : "sssssstest66666",
  "ak" : "sss"
}

Example Responses

Status code: 200

The cloud vendor account is modified.

{
  "data" : "688b32521c083f512c338cf2"
}

Status Codes

Status Code

Description

200

The cloud vendor account is modified.

Error Codes

See Error Codes.