Skip to main content

Update Cloud Account (OCI and Alibaba)

PUT 

/cloud/:cloud_type/:id

Update information related to a cloud account.

The request body parameters differ depending on the cloud type of the account you want to add.

Request Body to Update an Alibaba Account

The table below lists the request body parameters.

ParameterTypeDescriptionRequired?
accountIdstringAWS account IDRequired
groupIdsarray of stringsList of account group IDs for this accountRequired
namestringName to be used for the account on the Prisma Cloud platform (must be unique)Required
roleArnstringUnique identifier for an Alibaba RAM role resourceRequired
enabledbooleanWhether or not the account is enabledRequired
deploymentTypestringDeployment 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": ""
}

Request Body to Update an OCI Account

The table below lists the request body parameters to add an OCI account.

ParameterTypeDescriptionRequired?
accountTypestringOCI Account type. Current valid value is tenant.Required
defaultAccountGroupIdstringAccount group ID for this account. Used for alert rules.Required
enabledbooleanWhether or not to enable the accountRequired
namestringName of the OCI tenant you want Prisma Cloud to monitorRequired
groupNamestringOCI identity group name that you define. Can be an existing groupRequired
homeRegionstringOCI tenancy home regionRequired
policyNamestringOCI identity policy name that you define. Can be an existing policy that has the right policy statements.Required
accountIdstringOCID of your OCI tenancyRequired
userNamestringOCI identity user name that you define. Can be an existing user that has the right privileges.Required
userOcidstringUser OCID from your OCI Tenant Console after you apply the zip file from Generate Zipped Terraform Script (OCI) in the consoleRequired

Request Body Example

{
"accountType":"tenant",
"defaultAccountGroupId":"",
"enabled":true,
"name":"",
"groupName":"",
"homeRegion":"",
"policyName":"",
"accountId":"",
"userName":"",
"userOcid":""
}

Request

Path Parameters

    id stringrequired

    Account ID

    cloud_type stringrequired

    Possible values: [aws, azure, gcp, alibaba_cloud, oci]

    Cloud Type

Query Parameters

    skipStatusChecks boolean

    true = Skip account status checks to improve response time

Body

required

Cloud Account

    property name* object

Responses

successful operation

Loading...