Update Cloud Account

PUT {{cb_url}}/public-cloud/account-management/v1/orgs/{{cb_org_key}}/cloud_providers/{{cloud_provider}}/accounts/{{cloud_account_id}}

Update Cloud Account

Permissions Required

Permission (.notation name)Operation(s)
public.cloud.accountsUPDATE

Request Schema

{
  "cloud_provider_account_id": "<string>",
  "cloud_provider": "<string>",
  "name": "<string>",
  "owner_name": "<string>",
  "owner_email": "<string>",
  "environment": "<string>",
  "credential": {
    "role_arn": "<string>",
    "external_id": "<string>"
  },
  "regions": ["<string>"],
  "created_by": "<string>",
  "updated_by": "<string>",
  "event_stream_status": "<string>",
  "ssm_document_status": "<string>",
  "parent_id": "<string>",
  "aws_account_joined_method": "<string>",
  "new_accounts_discovered": <boolean>,
  "aws_account_type": "<string>",
  "is_onboarded": <boolean>,
  "account_discovery_status": "<string>"
}

See Documentation

Request Body

{"cloud_provider_account_id"=>"1234567890", "cloud_provider"=>"AWS", "name"=>"AWS Account 2", "owner_name"=>"Test", "owner_email"=>"test@testorg.com", "environment"=>"DEV", "credential"=>{"role_arn"=>"arn:aws:iam::1234567890:role/aws-service-role/spot.amazonaws.com/AWSServiceRoleForEC2Spot", "external_id"=>"afd5813b-e3c6-471a-b30e-3a8577f89111"}, "regions"=>["us-east-1", "us-east-2"]}

RESPONSES

status: OK

{&quot;name&quot;:&quot;AWS Account 2&quot;,&quot;owner_name&quot;:&quot;Test&quot;,&quot;owner_email&quot;:&quot;test@testorg.com&quot;,&quot;environment&quot;:&quot;DEV&quot;,&quot;credential&quot;:{&quot;verification_status&quot;:&quot;IN_PROGRESS&quot;,&quot;verification_code&quot;:null,&quot;verification_message&quot;:null,&quot;last_verified_time&quot;:null,&quot;role_arn&quot;:&quot;arn:aws:iam::1234567890:role/aws-service-role/spot.amazonaws.com/AWSServiceRoleForEC2Spot&quot;,&quot;external_id&quot;:&quot;afd5813b-e3c6-471a-b30e-3a8577f89111&quot;,&quot;application_id&quot;:null,&quot;tenant_id&quot;:null,&quot;secret_id&quot;:null,&quot;secret&quot;:null,&quot;secret_expiry&quot;:null,&quot;identity_provider_project_no&quot;:null,&quot;service_account_email&quot;:null,&quot;identity_pool_id&quot;:null,&quot;identity_provider_id&quot;:null},&quot;last_updated_time&quot;:&quot;2023-08-31T15:33:41.747068Z&quot;,&quot;regions&quot;:[&quot;us-east-1&quot;,&quot;us-east-2&quot;],&quot;created_by&quot;:&quot;ABCD1234&quot;,&quot;updated_by&quot;:&quot;ABCD1234&quot;,&quot;event_stream_status&quot;:null,&quot;ssm_document_status&quot;:null,&quot;parent_id&quot;:null,&quot;aws_account_joined_method&quot;:null,&quot;new_accounts_discovered&quot;:false,&quot;aws_account_type&quot;:&quot;INDEPENDENT&quot;,&quot;is_onboarded&quot;:true,&quot;account_discovery_status&quot;:null,&quot;parent_account_id&quot;:null,&quot;cloud_provider_account_id&quot;:&quot;1234567890&quot;,&quot;cloud_provider&quot;:&quot;AWS&quot;}