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.
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:create
Write
-
-
-
-
URI
POST /v1/vendor-account
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
vendor |
Yes |
String |
Definition: Cloud vendor information. Constraints: N/A Value range: AWS: Amazon Web Services (AWS) Default value: N/A |
|
account_id |
Yes |
String |
Definition: Account ID of a supplier. Constraints: N/A Value 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 Value range: The value is a string. It contains 0 to 64 characters. Default value: N/A |
|
ak |
Yes |
String |
Definition: AK. Constraints: N/A Value range: The value is a string. It contains 0 to 64 characters. Default value: N/A |
|
sk |
Yes |
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
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
String |
Definition: UUID allocated by COC-CMDB. Value range: N/A |
Example Requests
This API is used to 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.
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