Cloud AWS Registration
Cloud AWS Registration is the AWS-registration-account-list collection
for this CID — GetAccounts (SOURCE cloud-registration-aws-get-accounts,
PEP 8 get_accounts), QueryAccounts (SOURCE
cloud-registration-aws-query-accounts, PEP 8 query_accounts),
CreateAccount (SOURCE
cloud-registration-aws-create-account, PEP 8 create_account),
DeleteAccount (SOURCE cloud-registration-aws-delete-account,
PEP 8 delete_account), TriggerHealthCheck (SOURCE
cloud-registration-aws-trigger-health-check, PEP 8
trigger_health_check), UpdateAccount (SOURCE
cloud-registration-aws-update-account, PEP 8 update_account), and
ValidateAccounts (SOURCE
cloud-registration-aws-validate-accounts, PEP 8
validate_accounts). The
path is
GET /cloud-security-registration-aws/entities/account/v1,
GET /cloud-security-registration-aws/queries/account/v1,
POST /cloud-security-registration-aws/entities/account/v1,
PATCH /cloud-security-registration-aws/entities/account/v1,
DELETE /cloud-security-registration-aws/entities/account/v1,
POST /cloud-security-registration-aws/entities/account-scans/v1, and
POST /cloud-security-registration-aws/entities/account/validate/v1.
Image assessment policies / remaining cloud
and other cloud/container collections are not implemented (not yet).
This is not CSPM AWS
(GET /cloud-connect-cspm-aws/entities/account/v1,
POST /cloud-connect-cspm-aws/entities/account/v1, and
DELETE /cloud-connect-cspm-aws/entities/account/v1):
CSPM AWS. GET queries is distinct from GET
entities. POST account-scans is distinct from GET/POST/PATCH/DELETE
account entities. POST validate is distinct from POST create. This is
not Kubernetes AWS
(/kubernetes-protection/entities/accounts/aws/v1):
K8s AWS. This is not Kubernetes
(/kubernetes-protection/…) and not Hosts (/devices/…). This is
not the HelloService template sample (GET /api/hello).
This collection is not CrowdStrike production. It does not call Falcon cloud. It is not CrowdStrike Falcon Cloud or Horizon.
RPC field notes: CloudAwsRegistrationService. REST schemas:
API reference. Cloud AWS Registration uses query params, not FQL.
Extra unused query keys ids, organization-ids, and parameters are
ignored on GET entities. Clone GET entities success is JSON MSA 200
CloudAwsRegistrationAccount
(account_id, account_type, organization_id, registration_id,
registration_status, cid). SOURCE JSON array is not the clone
envelope. GET queries extra unused organization-ids, products,
features, account-status, group_by, and parameters are ignored.
Unused body organization_ids / account_status are ignored. Clone GET
queries success is JSON MSA 200 string ids. SOURCE JSON array is
not the clone envelope. POST create uses JSON body {account_id, account_type, organization_id}. Extra unused csp_events, is_master, products,
resources, and parameters are ignored. Clone POST success is JSON
MSA 200 (not SOURCE array and not SOURCE 201). DELETE uses query
ids (required) and an empty body. Extra unused organization-ids,
parameters, and body organization_ids are ignored. Clone DELETE
success is JSON MSA 200 empty resources (not SOURCE 207 /
writes). POST account-scans uses query account-ids (required) and an
empty body. Extra unused organization-ids, parameters, and body
organization_ids are ignored. Clone POST account-scans success is
JSON MSA 200 one {fail, success} object. SOURCE JSON array is
not the clone envelope. PATCH uses JSON body {account_id, account_type, organization_id}. Extra unused csp_events,
is_master, products, resources, and parameters are ignored.
Empty account_type or organization_id keeps the stored value.
Clone PATCH success is JSON MSA 200 CloudAwsRegistrationAccount.
PATCH is distinct from POST create. SOURCE JSON array is not the
clone envelope. POST validate uses query account-id (required) and an
empty body. Extra unused organization-id, iam-role-arn, and
parameters are ignored. Clone POST validate success is JSON MSA
200 one {account_id, status}. SOURCE JSON array is not the
clone envelope. POST validate is distinct from POST create. GET queries
is distinct from GET entities. POST account-scans is distinct from
GET/POST/PATCH/DELETE account entities.
These curls use Host: crowdstrike-api.localhost against Compose
Traefik on :8088. If the hostname already resolves to Traefik, you can
omit the Host header and call http://crowdstrike-api.localhost instead.
Auth
Every call needs a console session or a Bearer token:
- Cookie
cs_consolefromCreateSession(POST /identity/entities/sessions/v1) Authorization: Bearerwithcloud-aws-registration:read(GET entities, GET queries, POST account-scans, and POST validate) orcloud-aws-registration:write(POST create, PATCH, and DELETE)
A session cookie bypasses OAuth scopes and can POST create, PATCH,
DELETE, POST account-scans, and POST validate. Seed client
cs-local-hosts (hosts:read only) cannot list, query ids, create,
update, delete, trigger health check, or validate (403). Unit tests
use a client named cs-local-cspm with cspm-registration:read; that
client cannot list, query ids, create, update, delete, trigger
health check, or validate (403). Unit tests use a client named
cs-local-cawsr with cloud-aws-registration:read; that client can
list accounts, query ids, trigger health check, and validate and
cannot POST create, PATCH, or DELETE (403). Unit tests use a
client named cs-local-cawsrw with cloud-aws-registration:write; that
client can POST create, PATCH, and DELETE (200) and cannot
list accounts, query ids, trigger health check, or validate (403 on
GET, POST account-scans, and POST validate). GetAccounts stays
cloud-aws-registration:read. QueryAccounts stays
cloud-aws-registration:read. TriggerHealthCheck stays
cloud-aws-registration:read. ValidateAccounts stays
cloud-aws-registration:read. CreateAccount stays
cloud-aws-registration:write. UpdateAccount stays
cloud-aws-registration:write. DeleteAccount stays
cloud-aws-registration:write. There is no seeded production client
with cloud-aws-registration:read or cloud-aws-registration:write
— use the console cookie, or a client you created with that scope.
Missing or revoked token → 401.
HTTP paths
| Method | Path | Use |
|---|---|---|
GET | /cloud-security-registration-aws/entities/account/v1 | List accounts. RPC GetAccounts. SOURCE cloud-registration-aws-get-accounts. PEP 8 get_accounts. Extra unused query ids, organization-ids, parameters ignored. Success 200 MSA CloudAwsRegistrationAccount (account_id, account_type, organization_id, registration_id, registration_status, cid). Distinct from GET queries /cloud-security-registration-aws/queries/account/v1, POST account-scans /cloud-security-registration-aws/entities/account-scans/v1, CSPM GET /cloud-connect-cspm-aws/entities/account/v1, and POST/PATCH/DELETE this registration path. SOURCE array is not the clone envelope. |
GET | /cloud-security-registration-aws/queries/account/v1 | Query account ids. RPC QueryAccounts. SOURCE cloud-registration-aws-query-accounts. PEP 8 query_accounts. cloud-aws-registration:read. Extra unused query organization-ids, products, features, account-status, group_by, parameters ignored. Unused body organization_ids / account_status ignored. Success 200 MSA string ids. Distinct from GET entities /cloud-security-registration-aws/entities/account/v1, POST account-scans /cloud-security-registration-aws/entities/account-scans/v1, and POST/PATCH/DELETE this registration path. SOURCE array is not the clone envelope. Negative limit or offset → 400. |
POST | /cloud-security-registration-aws/entities/account/v1 | Create account. RPC CreateAccount. SOURCE cloud-registration-aws-create-account. PEP 8 create_account. cloud-aws-registration:write. Body JSON {account_id, account_type, organization_id}. Extra unused csp_events, is_master, products, resources, and parameters ignored. Success 200 MSA CloudAwsRegistrationAccount (account_id, account_type, organization_id, registration_id, registration_status, cid). Distinct from PATCH this registration path, POST validate /cloud-security-registration-aws/entities/account/validate/v1, POST account-scans /cloud-security-registration-aws/entities/account-scans/v1, CSPM POST /cloud-connect-cspm-aws/entities/account/v1, and GET/DELETE this registration path. SOURCE array / 201 is not the clone envelope. Duplicate POST 400. Missing account_id or organization_id → 400. |
PATCH | /cloud-security-registration-aws/entities/account/v1 | Update account. RPC UpdateAccount. SOURCE cloud-registration-aws-update-account. PEP 8 update_account. cloud-aws-registration:write. Body JSON {account_id, account_type, organization_id}. Extra unused csp_events, is_master, products, resources, and parameters ignored. Empty account_type or organization_id keeps the stored value. Success 200 MSA CloudAwsRegistrationAccount (account_id, account_type, organization_id, registration_id, registration_status, cid). Distinct from POST create this registration path, POST account-scans /cloud-security-registration-aws/entities/account-scans/v1, CSPM PATCH /cloud-connect-cspm-aws/entities/account/v1, and GET/DELETE this registration path. SOURCE array is not the clone envelope. Missing account_id → 400. Unknown account_id → 400. |
DELETE | /cloud-security-registration-aws/entities/account/v1 | Delete account. RPC DeleteAccount. SOURCE cloud-registration-aws-delete-account. PEP 8 delete_account. cloud-aws-registration:write. Query ids (required). Empty body. Extra unused organization-ids, parameters, and body organization_ids ignored. Success 200 MSA empty resources. Distinct from POST account-scans /cloud-security-registration-aws/entities/account-scans/v1, CSPM DELETE /cloud-connect-cspm-aws/entities/account/v1, and GET/POST/PATCH this registration path. SOURCE 207 / writes is not the clone envelope. Duplicate DELETE 400. Missing ids → 400. Unknown id → 400. |
POST | /cloud-security-registration-aws/entities/account-scans/v1 | Trigger health check. RPC TriggerHealthCheck. SOURCE cloud-registration-aws-trigger-health-check. PEP 8 trigger_health_check. cloud-aws-registration:read. Query account-ids (required). Empty body. Extra unused query organization-ids, parameters ignored. Unused body organization_ids ignored. Success 200 MSA one {fail, success} object. Distinct from GET/POST/PATCH/DELETE /cloud-security-registration-aws/entities/account/v1, GET queries /cloud-security-registration-aws/queries/account/v1, and POST validate /cloud-security-registration-aws/entities/account/validate/v1. SOURCE array is not the clone envelope. Missing account-ids → 400. Unknown id 200 success 0 fail 1. Duplicate ids count once. |
POST | /cloud-security-registration-aws/entities/account/validate/v1 | Validate account. RPC ValidateAccounts. SOURCE cloud-registration-aws-validate-accounts. PEP 8 validate_accounts. cloud-aws-registration:read. Query account-id (required). Empty body. Extra unused query organization-id, iam-role-arn, parameters ignored. Success 200 MSA one {account_id, status}. Distinct from POST create /cloud-security-registration-aws/entities/account/v1, GET/POST/PATCH/DELETE /cloud-security-registration-aws/entities/account/v1, GET queries /cloud-security-registration-aws/queries/account/v1, and POST account-scans /cloud-security-registration-aws/entities/account-scans/v1. SOURCE array is not the clone envelope. Missing account-id → 400. Unknown id → 400. |
Empty query params on GET entities return every account in this CID.
Extra unused ids, organization-ids, and parameters are ignored.
Default sort is account_id ascending. Cap is 100. Empty store →
empty resources, still 200.
GET queries empty params return every account id in this CID as strings.
Extra unused organization-ids, products, features,
account-status, group_by, and parameters are ignored. Unused body
organization_ids / account_status are ignored. limit default/0 →
100, max 100. Negative limit or offset → 400. Default sort
is account_id ascending. Empty store → empty resources, still
200. Clone GET queries success is JSON MSA 200 string ids.
SOURCE JSON array is not the clone envelope. GET queries is
distinct from GET entities. POST account-scans is distinct from
GET/POST/PATCH/DELETE account entities. POST validate is distinct from
POST create.
JSON is snake_case MSA: account_id, account_type, organization_id,
registration_id, registration_status, cid. Clone success is JSON
MSA 200, not SOURCE array and not SOURCE 207. POST account-scans
clone success is JSON MSA 200 {fail, success}. POST validate clone
success is JSON MSA 200 {account_id, status}. SOURCE JSON array
is not the clone envelope.
POST body JSON {account_id, account_type, organization_id}. Missing
account_id or organization_id → 400. Duplicate account_id →
400. Extra unused csp_events, is_master, products,
resources, and parameters are ignored. Empty account_type defaults
commercial. Clone POST success is 200 MSA
CloudAwsRegistrationAccount (not SOURCE array / 201). POST
account_id=666666666666 / account_type=commercial /
organization_id=o-reg-lab-3 returns that account with
registration_id reg-666666666666, registration_status
registered, cid cid-local-1. cs-local-cawsrw on POST →
200. cs-local-cawsr on POST → 403. cs-local-hosts on POST
→ 403. No auth on POST → 401. Session cookie can POST.
cs-local-cawsrw on GET → 403. This is not CSPM POST
/cloud-connect-cspm-aws/entities/account/v1, not PATCH this
registration path, not POST validate
/cloud-security-registration-aws/entities/account/validate/v1, and
not POST
account-scans /cloud-security-registration-aws/entities/account-scans/v1.
PATCH body JSON {account_id, account_type, organization_id}. Missing
account_id → 400. Unknown account_id → 400. Extra unused
csp_events, is_master, products, resources, and parameters
are ignored. Empty account_type or organization_id keeps the stored
value. Clone PATCH success is 200 MSA CloudAwsRegistrationAccount
(not SOURCE array). PATCH account_id=555555555555 /
account_type=gov / organization_id=o-reg-lab-2 returns that account
with registration_id reg-lab-2, registration_status registered,
cid cid-local-1. GET after PATCH lists 444444444444 commercial
then 555555555555 gov. cs-local-cawsrw on PATCH → 200.
cs-local-cawsr on PATCH → 403. cs-local-hosts on PATCH →
403. No auth on PATCH → 401. Session cookie can PATCH. This is
not POST create /cloud-security-registration-aws/entities/account/v1,
not CSPM PATCH /cloud-connect-cspm-aws/entities/account/v1, and
not POST account-scans
/cloud-security-registration-aws/entities/account-scans/v1.
DELETE query ids (empty body). ids is required; missing ids →
400. Unknown account id → 400. Extra unused query keys
(organization-ids, parameters) and extra unused body
organization_ids are ignored. There is no organization-ids delete
this slice. Clone DELETE success is 200 empty resources (not
SOURCE 207 / writes). GET after DELETE ids=666666666666 lists
444444444444 then 555555555555 (no 666666666666). A second
DELETE of the same id → 400. If several ids are sent and any is
unknown or empty, 400 and no row is deleted. cs-local-cawsrw on
DELETE → 200. cs-local-cawsr on DELETE → 403.
cs-local-hosts on DELETE → 403. No auth on DELETE → 401.
Session cookie can DELETE. GET still requires cloud-aws-registration:read.
Do not seed 666666666666. This is not CSPM DELETE
/cloud-connect-cspm-aws/entities/account/v1 and not GET/POST/PATCH this
registration path. This is not POST account-scans
/cloud-security-registration-aws/entities/account-scans/v1.
POST account-scans query account-ids (empty body). account-ids is
required; missing or empty account-ids → 400. Known id increments
success. Unknown id increments fail and does not write. Duplicate
ids count once. Extra unused query keys (organization-ids,
parameters) and extra unused body organization_ids are ignored.
There is no organization-ids scan this slice. Clone POST account-scans
success is 200 MSA one {fail, success} object (not SOURCE array).
POST account-ids=444444444444 returns success 1 fail 0. Unknown id
returns 200 success 0 fail 1. GET entities after this POST still
200 with the same account ids. cs-local-cawsr on POST account-scans
→ 200. cs-local-cawsrw on POST account-scans → 403.
cs-local-hosts on POST account-scans → 403. No auth → 401.
Session cookie can POST account-scans. This is not POST create
/cloud-security-registration-aws/entities/account/v1 and not PATCH
this registration path.
POST validate query account-id (empty body). account-id is
required; missing or empty account-id → 400. Unknown account id →
400. Extra unused query keys (organization-id, iam-role-arn,
parameters) and extra unused body fields are ignored. There is no
organization-id discovery this slice. Clone POST validate success is
200 MSA one {account_id, status} object (not SOURCE array). POST
account-id=444444444444 returns account_id 444444444444 status
registered. GET entities after this POST still 200 with the same
account ids. PATCH after this POST still 200. cs-local-cawsr on
POST validate → 200. cs-local-cawsrw on POST validate → 403.
cs-local-hosts on POST validate → 403. No auth → 401. Session
cookie can POST validate. This is not POST create
/cloud-security-registration-aws/entities/account/v1 and not POST
account-scans /cloud-security-registration-aws/entities/account-scans/v1.
This is not CSPM AWS, Kubernetes AWS, Kubernetes, Hosts, or the
HelloService template. CSPM AWS uses
GET /cloud-connect-cspm-aws/entities/account/v1,
POST /cloud-connect-cspm-aws/entities/account/v1, and
DELETE /cloud-connect-cspm-aws/entities/account/v1:
CSPM AWS. Kubernetes AWS uses
/kubernetes-protection/entities/accounts/aws/v1:
K8s AWS. Image assessment policies / remaining cloud and other cloud
collections are not implemented (not yet).
Seed accounts
account_id | account_type | organization_id | registration_id | registration_status |
|---|---|---|---|---|
444444444444 | commercial | o-reg-lab-1 | reg-lab-1 | registered |
555555555555 | commercial | o-reg-lab-2 | reg-lab-2 | registered |
cid is cid-local-1. Empty filters return both, 444444444444 then
555555555555. GET queries empty params return the same ids as
strings, 444444444444 then 555555555555. Extra unused ids,
organization-ids, and parameters still return both on GET entities.
Extra unused GET queries filters still return both. Do not seed
666666666666.
Session cookie
curl -sS -c cookies.txt -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"FalconLocal!1","cloud":"us-1"}' \
http://127.0.0.1:8088/identity/entities/sessions/v1
List accounts (cookie)
Empty filters return 444444444444 then 555555555555 with cid
cid-local-1. Success is 200 MSA CloudAwsRegistrationAccount.
Extra unused query keys (ids, organization-ids, parameters) are
ignored. SOURCE JSON array is not the clone envelope. This is
not GET queries /cloud-security-registration-aws/queries/account/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
not CSPM GET /cloud-connect-cspm-aws/entities/account/v1, and
not POST/PATCH/DELETE this registration path:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Extra unused query keys are ignored:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=ignored&organization-ids=ignored¶meters=ignored'
cs-local-hosts (hosts:read only) is 403 on GET:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-cspm (cspm-registration:read) is 403 on GET:
TOKEN='<access_token from cs-local-cspm>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-cawsrw (cloud-aws-registration:write) is 403 on GET:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
No cookie and no Bearer is 401 on GET:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). CSPM AWS is a
separate collection (/cloud-connect-cspm-aws/entities/account/v1):
CSPM AWS. Kubernetes AWS is a separate
collection (/kubernetes-protection/entities/accounts/aws/v1):
K8s AWS. This is not the HelloService
template (GET /api/hello).
Query account ids (cookie)
Empty filters return 444444444444 then 555555555555 as string ids.
Success is 200 MSA string ids. Extra unused query keys
(organization-ids, products, features, account-status,
group_by, parameters) are ignored. Unused body organization_ids /
account_status are ignored. SOURCE JSON array is not the clone
envelope. This is not GET entities
/cloud-security-registration-aws/entities/account/v1, not POST
account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not POST/PATCH/DELETE this registration path:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1'
Extra unused query keys are ignored:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1?organization-ids=ignored&products=ignored&features=ignored&account-status=ignored&group_by=ignored¶meters=ignored'
Negative limit is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1?limit=-1'
Negative offset is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1?offset=-1'
cs-local-hosts (hosts:read only) is 403 on GET queries:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1'
cs-local-cspm (cspm-registration:read) is 403 on GET queries:
TOKEN='<access_token from cs-local-cspm>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1'
cs-local-cawsrw (cloud-aws-registration:write) is 403 on GET queries:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1'
No cookie and no Bearer is 401 on GET queries:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). GET queries is
distinct from GET entities. This is not the HelloService template
(GET /api/hello).
Trigger health check (cookie)
POST account-ids=444444444444 returns success 1 fail 0. Success is
200 MSA one {fail, success} object. Extra unused organization-ids,
parameters, and body organization_ids are ignored. SOURCE JSON array
is not the clone envelope. This is not POST create
/cloud-security-registration-aws/entities/account/v1, not GET/POST/PATCH/DELETE
account entities, and not GET queries
/cloud-security-registration-aws/queries/account/v1. Empty body:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444'
Extra unused query keys are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444&organization-ids=ignored¶meters=ignored'
Unknown id is 200 success 0 fail 1:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=999999999999'
Missing account-ids is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1'
cs-local-cawsr (cloud-aws-registration:read) is 200 on POST
account-scans:
TOKEN='<access_token from cs-local-cawsr>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444'
cs-local-cawsrw (cloud-aws-registration:write) is 403 on POST
account-scans:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444'
cs-local-hosts (hosts:read only) is 403 on POST account-scans:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444'
No cookie and no Bearer is 401 on POST account-scans:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST account-scans is
distinct from GET/POST/PATCH/DELETE account entities. This is not the
HelloService template (GET /api/hello).
Validate account (cookie)
POST account-id=444444444444 returns account_id 444444444444
status registered. Success is 200 MSA one {account_id, status}
object. Extra unused organization-id, iam-role-arn, parameters,
and body fields are ignored. SOURCE JSON array is not the clone
envelope. GET entities after this POST still 200. This is not
POST create /cloud-security-registration-aws/entities/account/v1,
not POST account-scans
/cloud-security-registration-aws/entities/account-scans/v1, and not
GET/POST/PATCH/DELETE account entities. Empty body:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444'
Extra unused query keys are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444&organization-id=ignored&iam-role-arn=ignored¶meters=ignored'
Unknown id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=999999999999'
Missing account-id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1'
cs-local-cawsr (cloud-aws-registration:read) is 200 on POST
validate:
TOKEN='<access_token from cs-local-cawsr>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444'
cs-local-cawsrw (cloud-aws-registration:write) is 403 on POST
validate:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444'
cs-local-hosts (hosts:read only) is 403 on POST validate:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444'
No cookie and no Bearer is 401 on POST validate:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST validate is
distinct from POST create. This is not the HelloService template
(GET /api/hello).
Update account (cookie)
PATCH account_id=555555555555 / account_type=gov /
organization_id=o-reg-lab-2 returns that account with
registration_id reg-lab-2, registration_status registered, and
cid cid-local-1. Success is 200 MSA
CloudAwsRegistrationAccount. Extra unused csp_events, is_master,
products, resources, and parameters are ignored. Empty
account_type or organization_id keeps the stored value. SOURCE JSON
array is not the clone envelope. GET after PATCH lists
444444444444 commercial then 555555555555 gov. This is not POST
create /cloud-security-registration-aws/entities/account/v1, not
CSPM PATCH /cloud-connect-cspm-aws/entities/account/v1, not POST
account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not GET/DELETE this registration path:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Missing account_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Unknown account_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"999999999999","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Extra unused csp_events, is_master, and products are ignored:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2","csp_events":true,"is_master":true,"products":["ignored"]}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Empty account_type and organization_id keep stored values:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-cawsrw (cloud-aws-registration:write) is 200 on PATCH:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-cawsr (cloud-aws-registration:read) is 403 on PATCH:
TOKEN='<access_token from cs-local-cawsr>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-hosts (hosts:read only) is 403 on PATCH:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
No cookie and no Bearer is 401 on PATCH:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PATCH -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Create account (cookie)
POST account_id=666666666666 / account_type=commercial /
organization_id=o-reg-lab-3 returns that account with
registration_id reg-666666666666, registration_status
registered, and cid cid-local-1. Success is 200 MSA
CloudAwsRegistrationAccount. Extra unused csp_events, is_master,
products, resources, and parameters are ignored. SOURCE JSON
array / 201 is not the clone envelope. This is not CSPM
POST /cloud-connect-cspm-aws/entities/account/v1, not POST
validate /cloud-security-registration-aws/entities/account/validate/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not GET/PATCH/DELETE this registration path:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Duplicate POST is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Missing account_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Missing organization_id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-cawsrw (cloud-aws-registration:write) is 200 on POST:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-cawsr (cloud-aws-registration:read) is 403 on POST:
TOKEN='<access_token from cs-local-cawsr>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cs-local-hosts (hosts:read only) is 403 on POST:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
No cookie and no Bearer is 401 on POST:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Delete account (cookie)
DELETE ids=666666666666 returns empty resources. Success is 200.
Create that row first if it is missing. A later GET lists
444444444444 then 555555555555 (no 666666666666). A second DELETE
of the same id is 400. Extra unused organization-ids,
parameters, and body organization_ids are ignored. SOURCE 207 /
writes is not the clone envelope. This is not CSPM DELETE
/cloud-connect-cspm-aws/entities/account/v1, not POST account-scans
/cloud-security-registration-aws/entities/account-scans/v1, and not
GET/POST/PATCH this registration path. Empty body:
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
Duplicate DELETE is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
Missing ids is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
Unknown account id is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=999999999999'
cs-local-cawsrw (cloud-aws-registration:write) is 200 on DELETE:
TOKEN='<access_token from cs-local-cawsrw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
cs-local-cawsr (cloud-aws-registration:read) is 403 on DELETE:
TOKEN='<access_token from cs-local-cawsr>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
cs-local-hosts (hosts:read only) is 403 on DELETE:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
No cookie and no Bearer is 401 on DELETE:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X DELETE -H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
List (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cloud-aws-registration:read → 200. cs-local-cawsr → 200. A
token without that scope (including hosts:read only, e.g.
cs-local-hosts, cspm-registration:read e.g. cs-local-cspm, or
cloud-aws-registration:write e.g. cs-local-cawsrw) → 403.
Missing or revoked token → 401. GetAccounts stays
cloud-aws-registration:read. SOURCE
cloud-registration-aws-get-accounts. PEP 8 get_accounts. This is
not GET queries /cloud-security-registration-aws/queries/account/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
not CSPM GET /cloud-connect-cspm-aws/entities/account/v1, and
not POST/PATCH/DELETE this registration path. SOURCE JSON array is not
the clone envelope. There is no seeded production client with
cloud-aws-registration:read — use the console cookie, or a client
you created with that scope.
Query (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/queries/account/v1'
cloud-aws-registration:read → 200. cs-local-cawsr → 200. A
token without that scope (including hosts:read only, e.g.
cs-local-hosts, cspm-registration:read e.g. cs-local-cspm, or
cloud-aws-registration:write e.g. cs-local-cawsrw) → 403.
Missing or revoked token → 401. QueryAccounts stays
cloud-aws-registration:read. SOURCE
cloud-registration-aws-query-accounts. PEP 8 query_accounts. This
is not GET entities /cloud-security-registration-aws/entities/account/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not POST/PATCH/DELETE this registration path. Success 200 MSA
string ids. Extra unused filters ignored. SOURCE JSON array is not
the clone envelope. There is no seeded production client with
cloud-aws-registration:read — use the console cookie, or a client
you created with that scope.
Trigger health check (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:read>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account-scans/v1?account-ids=444444444444'
cloud-aws-registration:read → 200 on POST account-scans.
cs-local-cawsr → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, cspm-registration:read e.g.
cs-local-cspm, or cloud-aws-registration:write e.g.
cs-local-cawsrw) → 403. Missing or revoked token → 401.
Session cookie can POST account-scans. TriggerHealthCheck stays
cloud-aws-registration:read. SOURCE
cloud-registration-aws-trigger-health-check. PEP 8
trigger_health_check. This is not POST create
/cloud-security-registration-aws/entities/account/v1, not
GET/POST/PATCH/DELETE account entities, and not GET queries
/cloud-security-registration-aws/queries/account/v1. Success 200
MSA {fail, success}. Extra unused organization-ids ignored. SOURCE
JSON array is not the clone envelope. There is no seeded production
client with cloud-aws-registration:read — use the console cookie, or
a client you created with that scope.
Validate (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:read>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/validate/v1?account-id=444444444444'
cloud-aws-registration:read → 200 on POST validate.
cs-local-cawsr → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, cspm-registration:read e.g.
cs-local-cspm, or cloud-aws-registration:write e.g.
cs-local-cawsrw) → 403. Missing or revoked token → 401.
Session cookie can POST validate. ValidateAccounts stays
cloud-aws-registration:read. SOURCE
cloud-registration-aws-validate-accounts. PEP 8 validate_accounts.
This is not POST create
/cloud-security-registration-aws/entities/account/v1, not
GET/POST/PATCH/DELETE account entities, not GET queries
/cloud-security-registration-aws/queries/account/v1, and not POST
account-scans /cloud-security-registration-aws/entities/account-scans/v1.
Success 200 MSA {account_id, status}. Extra unused
organization-id / iam-role-arn ignored. SOURCE JSON array is
not the clone envelope. There is no seeded production client with
cloud-aws-registration:read — use the console cookie, or a client
you created with that scope.
Update (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:write>'
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"555555555555","account_type":"gov","organization_id":"o-reg-lab-2"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cloud-aws-registration:write → 200 on PATCH.
cs-local-cawsrw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-aws-registration:read e.g. cs-local-cawsr) → 403. Missing
or revoked token → 401. Session cookie can PATCH. UpdateAccount
stays cloud-aws-registration:write. SOURCE
cloud-registration-aws-update-account. PEP 8 update_account. This
is not POST create /cloud-security-registration-aws/entities/account/v1,
not CSPM PATCH /cloud-connect-cspm-aws/entities/account/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not GET/DELETE this registration path. SOURCE array is not
the clone envelope. Extra unused csp_events, is_master, products,
resources, and parameters are ignored. Empty account_type or
organization_id keeps the stored value. Missing account_id →
400. Unknown account_id → 400. There is no seeded production
client with cloud-aws-registration:write — use the console cookie, or
a client you created with that scope.
Create (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"account_id":"666666666666","account_type":"commercial","organization_id":"o-reg-lab-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1'
cloud-aws-registration:write → 200 on POST.
cs-local-cawsrw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-aws-registration:read e.g. cs-local-cawsr) → 403. Missing
or revoked token → 401. Session cookie can POST. CreateAccount stays
cloud-aws-registration:write. SOURCE
cloud-registration-aws-create-account. PEP 8 create_account. This
is not CSPM POST /cloud-connect-cspm-aws/entities/account/v1,
not POST validate /cloud-security-registration-aws/entities/account/validate/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not GET/PATCH/DELETE this registration path. SOURCE array / 201 is
not the clone envelope. Extra unused csp_events, is_master,
products, resources, and parameters are ignored. Duplicate POST →
400. Missing account_id or organization_id → 400. There is
no seeded production client with cloud-aws-registration:write — use
the console cookie, or a client you created with that scope.
Delete (Bearer)
TOKEN='<access_token from a client with cloud-aws-registration:write>'
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-aws/entities/account/v1?ids=666666666666'
cloud-aws-registration:write → 200 on DELETE.
cs-local-cawsrw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-aws-registration:read e.g. cs-local-cawsr) → 403. Missing
or revoked token → 401. Session cookie can DELETE. GET still
requires cloud-aws-registration:read. DeleteAccount stays
cloud-aws-registration:write. SOURCE
cloud-registration-aws-delete-account. PEP 8 delete_account. This
is not CSPM DELETE /cloud-connect-cspm-aws/entities/account/v1,
not POST account-scans /cloud-security-registration-aws/entities/account-scans/v1,
and not GET/POST/PATCH this registration path. SOURCE 207 / writes is
not the clone envelope. Extra unused organization-ids,
parameters, and body organization_ids are ignored. Duplicate DELETE
→ 400. Missing ids → 400. Unknown id → 400. There is no
seeded production client with cloud-aws-registration:write — use the
console cookie, or a client you created with that scope.
OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.