Update Cloud Account (GCP)
PUT/cas/v1/gcp_account/:id
Update the GCP cloud account information that has been onboarded onto the Prisma Cloud platform.
Request
Path Parameters
Account ID
Query Parameters
true = Skip account status checks to improve response time
- application/json
Body
required
Cloud Account
-
If
accountType
is organization andaccountGroupCreationMode
is MANUAL. -
If
accountType
is masterServiceAccount. - Array [
- ]
- Array [
- ]
cloudAccount objectrequired
Organization resource ID if accountType
is organization.
Project ID if accountType
is account or masterServiceAccount.
Workspace domain name if accountType
is workspace_domain.
Possible values: [account
, masterServiceAccount
, organization
, workspace_domain
]
Cloud Account Type.
account: GCP Project
organization: GCP Organization
masterServiceAccount: Onboards all GCP projects that are accessible by the service account
workspace_domain: GCP Workspace.
Enable or disable this account on Prisma Cloud.
Default value: false
Account name for the GCP account that will be onboarded on Prisma Cloud. (must be unique)
ID of the project.
Get the project ID from the credentials json file that is generated from the GCP Terraform template.
List of Account Groups that must be mapped to this account. To get the account group ids,call List Account Groups API
credentials objectrequired
The content of the credentials object is the Service Account Key for your Google Cloud service account
Enable or disable compressed network flow log generation.
Default value: false
Project ID where the Dataflow API is enabled .
Required if compressionEnabled
is set to true and if the accountType
is organization.
Optional if the accountType
is account or masterServiceAccount
Cloud Storage Bucket name that is used store the flow logs.
Possible values: [MANUAL
, AUTO
, RECURSIVE
]
Default value: MANUAL
MANUAL: Account will be mapped to the account group mentioned in defaultAccountGroupId
.
AUTO: Automatically creates account groups for each top-level folder in the hierarchy.
RECURSIVE: Automatically creates account groups for the folders that are nested within the GCP organization hierarchy.
Applicable only if the accountType
is organization.
Applicable only
hierarchySelection object[]
Applicable only if accountType
is organization.
Include/Exclude a list of GCP folders, GCP projects under the organization.
To get the list of resource IDs and its details, Refer List Children of Parent (GCP)
To get the display name of resource, Refer List Children of Parent (GCP). Display name is the organization name if nodeType
is ORG
Member account node type. Supported values are ORG, FOLDER, or PROJECT
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
GCP Organization name
features object[]
Features to be enabled and/ or disabled. To get a list of all the supported features, see 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.
Responses
- 200
- 400
- 404
successful operation
invalid_account_id_format / duplicate_cloud_account_name / duplicate_cloud_account / cannot_select_zero_account_groups / invalid_account_group_ids
invalid_account_type