Update Cloud Account (AWS)
PUT/cas/v1/aws_account/:id
Update details of an AWS cloud account that is already present in Prisma Cloud. Note: To enable or disable a cloud account, use Update Cloud Account Status API.
Request
Path Parameters
Account ID
Query Parameters
true = Skip account status checks to improve response time
- application/json
Body
required
Cloud Account
- Array [
- ]
- Array [
- ]
AWS Account ID
True to enable ingestion of logs to Prisma Cloud. The default value is True. \n NOTE: Ingestion will be stopped if enabled is set to False
Name to be used for the account on the Prisma Cloud platform (must be unique)
AWS Role ARN
Possible values: [organization
, account
]
Cloud Account Type
features object[]
Features to be enabled and/ or disabled. To get a list of all the supported features, call Fetch Supported Features endpoint
Feature name obtained from Fetch Supported Features endpoint
Possible values: [enabled
, disabled
]
Feature state. Whether to be enabled or disabled
Possible values: [enabled
, disabled
]
Enable or disable the feature for all the member accounts linked to this organization. You can enable or disable the defaultMemberState only if the feature state is enabled for the organization. Applicable only for Serverless Function Scanning and Agentless Workload Scanning features.
Account Group Ids for this account
Applicable only for accountType: organization.
This is the Default Account Group ID for the AWS organization and its member accounts.
hierarchySelection object[]
Applicable only for accountType: organization.
Include/Exclude a list of AWS Organization Units (OU), AWS accounts, and AWS Organizations to onboard under this organization.
To get the list of resource IDs and its details, Refer List Children of Parent (AWS)
To get the display name of resource, Refer List Children of Parent (AWS)
Member account node type. Supported values are ORG, OU or ACCOUNT
Possible values: [ALL
, INCLUDE
, EXCLUDE
]
Organization Member accounts Selection type.
ALL: Include the resource and all its children
INCLUDE: Include the specified resource
EXCLUDE: Exclude the specified resource
Applicable only for the organization accountType.
The default value is false. If it is set to true, you must provide a memberRole name.
Applicable only for the organization accountType.
The default value is true. If it is set to false, the existing Role Name and external ID for the member accounts will be retained.
Applicable only for the organization accountType.
The default value is false. If it is set true, you will get different CFT's for Management and Member accounts.
Applicable only for the organization accountType and when customMemberRoleNameEnabled is set to true.
Specify whether to use tenantExternalId, the default is false
Responses
- 200
- 400
- 404
- 412
successful operation
duplicate_cloud_account_name / duplicate_cloud_account / cannot_select_zero_account_groups / invalid_account_group_ids / invalid_account_type
invalid_account_id_format
external_id_empty_or_not_generated. To generate CFT and externalId call Generate and Download the AWS CFT Template endpoint or Generate the AWS CFT Template Link Endpoint