Facet Cloud Accounts

POST {{cb_url}}/public-cloud/account-management/v1/orgs/{{cb_org_key}}/accounts/_facet

Facet Cloud Accounts

Permissions Required

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

Request Schema

{
  "query": "<string>",
  "criteria": {
    "name": ["<string>"],
    "cloud_provider": ["<string>"],
    "cloud_provider_account_id": ["<string>"],
    "credential.verification_status": ["<string>"],
    "parent_account_id": ["<string>"],
    "is_onboarded": <boolean>,
    "environment": ["<string>"],
    "aws_account_type": ["<string>"],
  },
  "terms": {
    "rows": 20,
    "fields": ["<string>"]
  }
}

See Documentation

Request Body

{"criteria"=>{"name"=>["AWS Account 1"], "cloud_provider"=>["AWS"], "cloud_provider_account_id"=>["1234567890"], "environment"=>["DEV", "PROD"], "credential.verification_status"=>["FAIL"]}, "terms"=>{"rows"=>20, "fields"=>["CLOUD_PROVIDER"]}}

RESPONSES

status: OK

{&quot;terms&quot;:[{&quot;field&quot;:&quot;CLOUD_PROVIDER&quot;,&quot;values&quot;:[{&quot;total&quot;:1,&quot;id&quot;:&quot;AWS&quot;,&quot;name&quot;:&quot;AWS&quot;}]}]}