Updated on 2025-12-05 GMT+08:00

Creating a Cloud Vendor Account

Function

This API is used to create a cloud vendor (such as Alibaba Cloud, AWS, Azure, and Huawei Cloud Stack) account.

URI

POST /v1/vendor-account

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

vendor

Yes

String

Definition

Cloud vendor information.

Constraints

N/A

Range

  • RMS: Huawei Cloud

  • AZURE: Microsoft Azure

  • ALI: Alibaba Cloud

  • VMWARE: VMware

  • OPENSTACK: OpenStack cloud platform

  • HCS: Huawei Cloud Stack (HCS), a hybrid cloud solution of Huawei.

  • OTHER: other cloud vendors

AWS: Amazon Web Services

Default value

N/A

account_id

Yes

String

Definition

Account ID of the vendor.

Constraints

N/A

Range

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

Default value

N/A

account_name

Yes

String

Definition

Account name

Constraints

N/A

Range

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

Default value

N/A

ak

Yes

String

Definition

Access key ID.

Constraints

N/A

Range

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

Default value

N/A

sk

Yes

String

Definition

Access key password.

Constraints

N/A

Range

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

Default value

N/A

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

data

String

Definition

UUID allocated by COC-CMDB.

Range

N/A

Example Requests

Add a cloud vendor account.

POST https://{endpoint}/v1/vendor-account

{
  "vendor" : "HCS",
  "account_name" : "ssssss",
  "account_id" : "ssstest21321",
  "ak" : "sss",
  "sk" : "ssssssss"
}

Example Responses

Status code: 200

The cloud vendor account is created.

{
  "data" : "688b32521c083f512c338cf2"
}

Status Codes

Status Code

Description

200

The cloud vendor account is created.

Error Codes

See Error Codes.