Add Cloud Account (OCI and Alibaba)
POST/cloud/:cloud_type
Onboard a new cloud account onto the Prisma Cloud platform.
The request body parameters differ depending on the cloud type of the account you want to add.
Request Body to Add an Alibaba Account
The table below lists the request body parameters to add an Alibaba account.
Parameter | Type | Description | Default Value or Required |
---|---|---|---|
accountId | string | AWS account ID | Required |
groupIds | array of strings | List of account group IDs for this account | Required |
name | string | Name to be used for the account on the Prisma Cloud platform (must be unique) | Required |
roleArn | string | Unique identifier for an Alibaba RAM role resource | Required |
enabled | boolean | Whether or not the account is enabled | Default is false |
deploymentType | string | Deployment type. Valid values: ali-int, ali-cn, ali-fn ali-int: Alibaba International ali-cn: Alibaba China. Allows you to monitor all the resources in the Alibaba China region, but does not monitor resources in the Alibaba Finance region. ali-fn: Alibaba Finance. Applicable only for the Alibaba China region. Allows you to monitor resources located only in the Alibaba Finance regions. | Optional |
Request Body Example
{
"accountId": "",
"groupIds": [],
"name": "",
"enabled": true,
"ramArn": ""
}
Requirements and Request Body to Add an OCI Account
To add an Oracle Cloud Infrastructure (OCI) account, you must:
- Use Generate Zipped Terraform Script (OCI) in the console | Required
Request Body Example
{
"accountType":"tenant",
"defaultAccountGroupId":"",
"enabled":true,
"name":"",
"groupName":"",
"homeRegion":"",
"policyName":"",
"accountId":"",
"userName":"",
"userOcid":""
}
Request
Path Parameters
cloud_type stringrequired
Possible values: [alibaba_cloud
, oci
]
Cloud Type
Query Parameters
skipStatusChecks boolean
true = Skip account status checks to improve response time
- application/json
Body
required
Cloud Account
property name* object
Responses
- 200
- 400
- 404
successful operation
duplicate_cloud_account_name / duplicate_cloud_account / invalid_account_id_format / duplicate_cloud_account_needs_upgrade / cannot_select_zero_account_groups / invalid_account_group_ids
invalid_account_type
Loading...