Cloud Google Cloud Registration
Cloud Google Cloud Registration is the Google-Cloud-registration-list
collection for this CID — GetRegistration (SOURCE
cloud-registration-gcp-get-registration, PEP 8
get_registration), CreateRegistration (SOURCE
cloud-registration-gcp-create-registration, PEP 8
create_registration), DeleteRegistration (SOURCE
cloud-registration-gcp-delete-registration, PEP 8
delete_registration), GetEntities (SOURCE
cloud-registration-gcp-get-entities, PEP 8
get_entities), PostTerraformScript (SOURCE
cloud-registration-gcp-post-terraform-script, PEP 8
cloud_registration_gcp_post_terraform_script), PutRegistration
(SOURCE cloud-registration-gcp-put-registration, PEP 8
cloud_registration_gcp_put_registration), TriggerHealthCheck
(SOURCE cloud-registration-gcp-trigger-health-check, PEP 8
trigger_health_check), and UpdateRegistration
(SOURCE cloud-registration-gcp-update-registration, PEP 8
cloud_registration_gcp_update_registration). Request proto
CloudGoogleGetRegistrationRequest (Azure already owns
GetRegistrationRequest in platform.v1). Create request proto
CloudGoogleCreateRegistrationRequest (Azure already owns
CreateRegistrationRequest in platform.v1). Delete request proto
CloudGoogleDeleteRegistrationRequest (Azure already owns
DeleteRegistrationRequest in platform.v1). Entities request proto
CloudGoogleGetEntitiesRequest. Terraform-script request proto
CloudGooglePostTerraformScriptRequest. Put request proto
CloudGooglePutRegistrationRequest. Health-check request proto
CloudGoogleTriggerHealthCheckRequest (Azure already owns
CloudAzureTriggerHealthCheckRequest in platform.v1). Update request proto
CloudGoogleUpdateRegistrationRequest (Azure already owns
UpdateRegistrationRequest in platform.v1). The path is
GET /cloud-security-registration-google-cloud/entities/registrations/v1,
POST /cloud-security-registration-google-cloud/entities/registrations/v1,
DELETE /cloud-security-registration-google-cloud/entities/registrations/v1,
GET /cloud-security-registration-google-cloud/entities/accounts/v1,
POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
PUT /cloud-security-registration-google-cloud/entities/registrations/v1,
POST /cloud-security-registration-google-cloud/entities/registration-scans/v1,
and
PATCH /cloud-security-registration-google-cloud/entities/registrations/v1.
Image assessment policies / remaining cloud
and other cloud/container collections are not implemented (not yet).
This is not CSPM GCP
(GET /cloud-connect-cspm-gcp/entities/account/v1,
POST /cloud-connect-cspm-gcp/entities/account/v1, and
DELETE /cloud-connect-cspm-gcp/entities/account/v1):
CSPM GCP. GET this registrations path is
distinct from POST this registrations path, PUT this
registrations path, PATCH this registrations path, DELETE this
registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
POST /cloud-security-registration-google-cloud/entities/registration-scans/v1,
and Azure healthcheck POST
/cloud-security-registration-azure/entities/registrations/healthcheck/v1.
GET this accounts path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, POST this
scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM GCP GET
/cloud-connect-cspm-gcp/entities/account/v1. POST this
registrations path is distinct from GET this registrations path,
PUT this registrations path, PATCH this registrations path,
DELETE this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and
CSPM POST /cloud-connect-cspm-gcp/entities/account/v1. DELETE this
registrations path is distinct from GET this registrations path, POST
this registrations path, PUT this registrations path, PATCH
this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and
CSPM GCP DELETE /cloud-connect-cspm-gcp/entities/account/v1. POST
this scripts-terraform path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, GET this
accounts path, Azure DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
PUT this registrations path is distinct from GET this registrations
path, POST this registrations path, PATCH this registrations
path, DELETE this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
This is not Cloud Azure Registration
(GET /cloud-security-registration-azure/entities/registrations/v1)
and not Azure DownloadScript
(POST /cloud-security-registration-azure/entities/scripts/v1):
Cloud Azure Registration. 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: CloudGoogleCloudRegistrationService. REST schemas:
API reference. Cloud Google Cloud Registration uses query
params, not FQL. Extra unused query keys ids and parameters are
ignored on GET registrations. Clone GET registrations success is JSON
MSA 200 persisted keys (registration_id, registration_name,
status, deployment_method, infra_project_id, cid). SOURCE JSON
array is not the clone envelope. Extra unused query keys ids,
filter, sort, limit, offset, and parameters are ignored on
GET entities (limit if sent is integer). Clone GET entities success
is JSON MSA 200 persisted keys (entity_id, entity_type,
entity_name, registration_id, cid). SOURCE grouped
folders/organizations/projects is not the clone envelope. POST
body JSON {registration_name, deployment_method, infra_project_id}.
Extra unused expansion / SOURCE resources wrap ignored. Clone POST
success is JSON MSA 200 persisted keys (not SOURCE array / 201).
DELETE uses query ids. Extra unused query parameters ignored.
Clone DELETE success is JSON MSA 200 persisted keys (not SOURCE
array). POST terraform body JSON {registration_id}. Extra unused
body ignored. Clone POST terraform success is JSON MSA 200
persisted keys (cid, registration_id, url, version). SOURCE
resources wrap / error-only grid / writes / zip is not the
clone envelope. PUT body JSON {registration_name, deployment_method, infra_project_id}. Extra unused body ignored. Clone PUT success is
JSON MSA 200 persisted keys. SOURCE array / writes is not the
clone envelope. POST registration-scans query ids. Extra unused query
parameters ignored. Empty body. Clone POST registration-scans success
is JSON MSA 200 persisted keys (registration_id). SOURCE array is
not the clone envelope. PATCH query ids (one registration_id). Body JSON
{registration_name, deployment_method, infra_project_id, status}. Extra unused
body ignored. Clone PATCH success is JSON MSA 200 persisted keys. SOURCE
array / 404 is not the clone envelope. GET this registrations path is distinct from POST this
registrations path, PUT this registrations path, PATCH this
registrations path, DELETE this registrations path, CSPM GET
/cloud-connect-cspm-gcp/entities/account/v1, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
POST /cloud-security-registration-google-cloud/entities/registration-scans/v1,
Azure healthcheck POST
/cloud-security-registration-azure/entities/registrations/healthcheck/v1,
and Cloud Azure Registration GET
/cloud-security-registration-azure/entities/registrations/v1. GET
this accounts path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, POST this
scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM GCP GET
/cloud-connect-cspm-gcp/entities/account/v1. POST this
registrations path is distinct from GET this registrations path,
PUT this registrations path, PATCH this registrations path,
DELETE this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and
CSPM POST /cloud-connect-cspm-gcp/entities/account/v1. DELETE this
registrations path is distinct from GET this registrations path, POST
this registrations path, PUT this registrations path, PATCH
this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and
CSPM GCP DELETE /cloud-connect-cspm-gcp/entities/account/v1. POST
this scripts-terraform path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, GET this
accounts path, Azure DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
PUT this registrations path is distinct from GET this registrations
path, POST this registrations path, PATCH this registrations
path, DELETE this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
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-google-cloud-registration:readfor GET registrations and GET entities, orcloud-google-cloud-registration:writefor POST registrations, PUT registrations, PATCH registrations, DELETE registrations, POST terraform, and POST registration-scans
A session cookie bypasses OAuth scopes and can GET registrations, GET
entities, POST registrations, PUT registrations, PATCH registrations, DELETE registrations,
POST terraform, and POST registration-scans.
Seed client
cs-local-hosts (hosts:read only) cannot list registrations, list
entities, create, put, delete, generate a terraform script, or trigger a health check, or update a registration (403). Unit tests use a client
named cs-local-cspm with cspm-registration:read; that client
cannot list registrations, list entities, create, put, delete, generate a terraform script, or trigger a health check, or update a registration (403). cspm-registration:write is
403. Unit tests use a client named cs-local-cazr with
cloud-azure-registration:read; that client cannot list
registrations, list entities, create, put, delete, generate a terraform
script, or trigger a health check, or update a registration (403). cloud-azure-registration:write is 403. Unit
tests use a Compose OAuth test-only client named cs-local-cgcpr /
cs-local-cgcpr-secret with cloud-google-cloud-registration:read;
that client can list registrations and list entities (200) and
cannot POST registrations, PUT registrations, PATCH registrations, DELETE registrations, POST terraform, or POST registration-scans
(403). Unit
tests use a Compose OAuth test-only client named cs-local-cgcprw /
cs-local-cgcprw-secret with cloud-google-cloud-registration:write;
that client can POST registrations (200), PUT registrations
(200), DELETE
registrations (200), PATCH registrations (200), POST terraform (200), and POST registration-scans (200) and cannot
list registrations or list
entities (403 on GET). GetRegistration stays
cloud-google-cloud-registration:read. GetEntities is
cloud-google-cloud-registration:read. CreateRegistration stays
cloud-google-cloud-registration:write. DeleteRegistration stays
cloud-google-cloud-registration:write. PostTerraformScript stays
cloud-google-cloud-registration:write. PutRegistration stays
cloud-google-cloud-registration:write. TriggerHealthCheck stays
cloud-google-cloud-registration:write. UpdateRegistration stays
cloud-google-cloud-registration:write. Live traffic uses the console
cookie. There is no seeded production client with
cloud-google-cloud-registration:read or
cloud-google-cloud-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-google-cloud/entities/registrations/v1 | List Cloud Google Cloud Registration rows. RPC GetRegistration. SOURCE cloud-registration-gcp-get-registration. PEP 8 get_registration. cloud-google-cloud-registration:read. Request proto CloudGoogleGetRegistrationRequest (Azure already owns GetRegistrationRequest). Extra unused query ids, parameters ignored. Success 200 MSA persisted keys (registration_id, registration_name, status, deployment_method, infra_project_id, cid). Distinct from CSPM GET /cloud-connect-cspm-gcp/entities/account/v1, GET /cloud-security-registration-google-cloud/entities/accounts/v1, POST this registrations path, PUT this registrations path, PATCH this registrations path, DELETE this registrations path, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and Cloud Azure Registration GET /cloud-security-registration-azure/entities/registrations/v1. SOURCE array is not the clone envelope. |
GET | /cloud-security-registration-google-cloud/entities/accounts/v1 | List GCP entities. RPC GetEntities. SOURCE cloud-registration-gcp-get-entities. PEP 8 get_entities. cloud-google-cloud-registration:read. Request proto CloudGoogleGetEntitiesRequest. Extra unused query ids, filter, sort, limit, offset, parameters ignored (limit if sent is integer). Success 200 MSA persisted keys (entity_id, entity_type, entity_name, registration_id, cid). Distinct from GET/POST/PUT/DELETE /cloud-security-registration-google-cloud/entities/registrations/v1, PATCH this registrations path, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM GCP GET /cloud-connect-cspm-gcp/entities/account/v1. SOURCE grouped folders/organizations/projects is not the clone envelope. Empty query lists all. Cap is 100. Empty store → empty resources, still 200. |
POST | /cloud-security-registration-google-cloud/entities/registrations/v1 | Create a registration. RPC CreateRegistration. SOURCE cloud-registration-gcp-create-registration. PEP 8 create_registration. cloud-google-cloud-registration:write. Request proto CloudGoogleCreateRegistrationRequest (Azure already owns CreateRegistrationRequest). Body JSON {registration_name, deployment_method, infra_project_id}. Extra unused expansion / SOURCE resources wrap ignored. Success 200 MSA persisted keys (registration_id, registration_name, status, deployment_method, infra_project_id, cid). Distinct from GET this path, PUT this path, PATCH this path, DELETE this path, GET /cloud-security-registration-google-cloud/entities/accounts/v1, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM POST /cloud-connect-cspm-gcp/entities/account/v1. SOURCE array / 201 is not the clone envelope. Duplicate name 400. Missing registration_name → 400. Created registration_id is reg-<slug> (Lab GCP 3 → reg-lab-gcp-3). Empty deployment_method → terraform. |
DELETE | /cloud-security-registration-google-cloud/entities/registrations/v1 | Delete a registration. RPC DeleteRegistration. SOURCE cloud-registration-gcp-delete-registration. PEP 8 delete_registration. cloud-google-cloud-registration:write. Request proto CloudGoogleDeleteRegistrationRequest (Azure already owns DeleteRegistrationRequest). Query ids. Empty body. Extra unused parameters ignored. Success 200 MSA persisted keys (registration_id, registration_name, status, deployment_method, infra_project_id, cid). Distinct from GET this path, POST this path, PUT this path, PATCH this path, GET /cloud-security-registration-google-cloud/entities/accounts/v1, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM GCP DELETE /cloud-connect-cspm-gcp/entities/account/v1. SOURCE array is not the clone envelope. Duplicate DELETE 400. Missing ids → 400. Unknown id → 400. Create Lab GCP 3 first if missing. |
POST | /cloud-security-registration-google-cloud/entities/scripts-terraform/v1 | Generate a terraform script. RPC PostTerraformScript. SOURCE cloud-registration-gcp-post-terraform-script. PEP 8 cloud_registration_gcp_post_terraform_script. cloud-google-cloud-registration:write. Request proto CloudGooglePostTerraformScriptRequest. Body JSON {registration_id}. Extra unused body (resources, parameters, vars_only, entity_id, nested SOURCE settings) ignored. Success 200 MSA persisted keys (cid, registration_id, url, version). Distinct from GET/POST/PUT/DELETE /cloud-security-registration-google-cloud/entities/registrations/v1, PATCH this registrations path, GET /cloud-security-registration-google-cloud/entities/accounts/v1, Azure DownloadScript POST /cloud-security-registration-azure/entities/scripts/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM GCP. SOURCE resources wrap / error-only grid / writes / zip is not the clone envelope. Missing registration_id → 400. Unknown registration → 400. GET registrations after still 200. GET entities after still 200. |
PUT | /cloud-security-registration-google-cloud/entities/registrations/v1 | Put an update onto a registration. RPC PutRegistration. SOURCE cloud-registration-gcp-put-registration. PEP 8 cloud_registration_gcp_put_registration. cloud-google-cloud-registration:write. Request proto CloudGooglePutRegistrationRequest. Body JSON {registration_name, deployment_method, infra_project_id}. Extra unused body ignored. Success 200 MSA persisted keys (registration_id, registration_name, status, deployment_method, infra_project_id, cid). Distinct from GET this path, POST this path, PATCH this path, DELETE this path, GET /cloud-security-registration-google-cloud/entities/accounts/v1, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM GCP. SOURCE array / writes is not the clone envelope. Missing registration_name → 400. Unknown registration_name → 400. Empty deployment_method / infra_project_id keep stored. PUT registration_name=Lab GCP 2 / infra_project_id=gcp-lab-project-2b returns gcp-reg-2 with that infra. GET after lists gcp-reg-1 (gcp-lab-project-1) then gcp-reg-2 (gcp-lab-project-2b). GET entities after still 200. POST terraform after still 200. PATCH after still 200. |
PATCH | /cloud-security-registration-google-cloud/entities/registrations/v1 | Update a registration. RPC UpdateRegistration. SOURCE cloud-registration-gcp-update-registration. PEP 8 cloud_registration_gcp_update_registration. cloud-google-cloud-registration:write. Request proto CloudGoogleUpdateRegistrationRequest (Azure already owns UpdateRegistrationRequest). Query ids one registration_id. Body JSON {registration_name, deployment_method, infra_project_id, status}. Extra unused body ignored. Success 200 MSA persisted keys (registration_id, registration_name, status, deployment_method, infra_project_id, cid). Distinct from PUT this path, GET this path, POST this path, DELETE this path, GET /cloud-security-registration-google-cloud/entities/accounts/v1, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, POST /cloud-security-registration-google-cloud/entities/registration-scans/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM GCP. SOURCE array / 404 is not the clone envelope. Missing ids → 400. Two unique ids → 400. Unknown id → 400. Empty deployment_method / infra_project_id / registration_name / status keep stored. PATCH ids=gcp-reg-2 / infra_project_id=gcp-lab-project-2c returns gcp-reg-2 with that infra. GET after lists gcp-reg-1 (gcp-lab-project-1) then gcp-reg-2 (gcp-lab-project-2c). GET entities after still 200. POST terraform after still 200. PUT after still 200. POST registration-scans after still 200. |
POST | /cloud-security-registration-google-cloud/entities/registration-scans/v1 | Trigger a health check. RPC TriggerHealthCheck. SOURCE cloud-registration-gcp-trigger-health-check. PEP 8 trigger_health_check. cloud-google-cloud-registration:write. Request proto CloudGoogleTriggerHealthCheckRequest (Azure already owns CloudAzureTriggerHealthCheckRequest in platform.v1). Query ids. Empty body. Extra unused query parameters ignored. Success 200 MSA {registration_id}. Distinct from GET/POST/PUT/DELETE /cloud-security-registration-google-cloud/entities/registrations/v1, PATCH this registrations path, GET /cloud-security-registration-google-cloud/entities/accounts/v1, POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, Azure healthcheck POST /cloud-security-registration-azure/entities/registrations/healthcheck/v1, and CSPM GCP. SOURCE array is not the clone envelope. Duplicate ids count once. Missing/empty ids → 400. Unknown id → 400. POST ids=gcp-reg-1 returns registration_id gcp-reg-1. GET registrations after still 200. GET entities after still 200. POST terraform after still 200. PUT after still 200. PATCH after still 200. |
Empty query params return every registration or entity row in this CID.
Extra unused ids and parameters are ignored on GET registrations.
Extra unused ids, filter, sort, limit, offset, and
parameters are ignored on GET entities (limit if sent is integer).
Default sort is registration_id ascending on registrations and
entity_id ascending on entities. Cap is 100. Empty store → empty
resources, still 200.
JSON is snake_case MSA. Registration keys: registration_id,
registration_name, status, deployment_method, infra_project_id,
cid. Entity keys: entity_id, entity_type, entity_name,
registration_id, cid. Terraform-script keys: cid,
registration_id, url, version. Health-check keys: registration_id.
Clone success is JSON MSA 200,
not SOURCE array and not SOURCE grouped folders/organizations/projects.
SOURCE array is not the clone envelope. SOURCE grouped
folders/organizations/projects is not the clone envelope. Clone
POST success is JSON MSA 200, not SOURCE array and not SOURCE
201. SOURCE array / 201 is not the clone envelope. Clone
POST terraform success is JSON MSA 200 persisted keys. SOURCE
resources wrap / error-only grid / writes / zip is not the
clone envelope. Clone PUT success is JSON MSA 200 persisted keys.
SOURCE array / writes is not the clone envelope. Clone POST
registration-scans success is JSON MSA 200 persisted keys
(registration_id). SOURCE array is not the clone envelope. Clone PATCH
success is JSON MSA 200 persisted keys. SOURCE array / 404 is not the
clone envelope.
POST body JSON {registration_name, deployment_method, infra_project_id}. Missing registration_name → 400. Duplicate
name → 400. Extra unused expansion (entity_id,
excluded_project_patterns, falcon_client_key_id,
falcon_client_key_type, labels, products, registration_scope,
resource_name_prefix, folders, projects, wif_properties,
status, parameters) and SOURCE resources wrap are ignored. Empty
deployment_method → terraform. Empty infra_project_id stays
empty. Clone POST success is 200 MSA persisted keys (not SOURCE
array / 201). POST registration_name=Lab GCP 3 /
deployment_method=terraform / infra_project_id=gcp-lab-project-3
returns that row with registration_id reg-lab-gcp-3, status
registered, cid cid-local-1. cs-local-cgcprw on POST → 200.
cs-local-cgcpr on POST → 403. cs-local-hosts on POST → 403.
No auth on POST → 401. Session cookie can POST. cs-local-cgcprw
on GET → 403. GetRegistration stays
cloud-google-cloud-registration:read. GetEntities is
cloud-google-cloud-registration:read. CreateRegistration stays
cloud-google-cloud-registration:write. DeleteRegistration stays
cloud-google-cloud-registration:write. PostTerraformScript stays
cloud-google-cloud-registration:write. PutRegistration stays
cloud-google-cloud-registration:write. TriggerHealthCheck stays
cloud-google-cloud-registration:write. UpdateRegistration stays
cloud-google-cloud-registration:write. This is not GET this
registrations path, not PUT this registrations path, not PATCH this registrations path, not DELETE this registrations path, not
GET /cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM POST /cloud-connect-cspm-gcp/entities/account/v1.
Do not seed Lab GCP 3 / reg-lab-gcp-3. DELETE query ids.
Extra unused parameters ignored. Duplicate DELETE → 400. Missing
ids → 400. Unknown id → 400. Create Lab GCP 3 first if
missing. Session cookie can DELETE. cs-local-cgcprw on DELETE →
200. cs-local-cgcpr on DELETE → 403. cs-local-hosts on
DELETE → 403. No auth on DELETE → 401.
This is not CSPM GCP, Cloud Azure Registration, Kubernetes, Hosts,
or the HelloService template. CSPM GCP uses
GET /cloud-connect-cspm-gcp/entities/account/v1,
POST /cloud-connect-cspm-gcp/entities/account/v1, and
DELETE /cloud-connect-cspm-gcp/entities/account/v1:
CSPM GCP. Cloud Azure Registration uses
GET /cloud-security-registration-azure/entities/registrations/v1:
Cloud Azure Registration. Azure
DownloadScript POST /cloud-security-registration-azure/entities/scripts/v1
is a separate collection. POST this scripts-terraform path is
distinct from GET/POST/PUT/DELETE this registrations path, PATCH this registrations path, GET this
accounts path, Azure DownloadScript, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
PUT this registrations path is distinct from GET/POST/DELETE this
registrations path, PATCH this registrations path, GET this
accounts path, POST this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
POST this registration-scans path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, GET this
accounts path, POST this scripts-terraform path, Azure healthcheck POST
/cloud-security-registration-azure/entities/registrations/healthcheck/v1,
and CSPM GCP.
PATCH this registrations path is distinct from PUT this registrations path,
GET/POST/DELETE this registrations path, GET this accounts path, POST this
scripts-terraform path, POST this registration-scans path, Azure healthcheck,
and CSPM GCP.
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet).
Seed registrations
registration_id | registration_name | status | deployment_method | infra_project_id | cid |
|---|---|---|---|---|---|
gcp-reg-1 | Lab GCP 1 | registered | terraform | gcp-lab-project-1 | cid-local-1 |
gcp-reg-2 | Lab GCP 2 | registered | terraform | gcp-lab-project-2 | cid-local-1 |
Empty filters return both, gcp-reg-1 then gcp-reg-2. Extra unused
ids and parameters still return both.
Seed entities
entity_id | entity_type | entity_name | registration_id | cid |
|---|---|---|---|---|
gcp-ent-1 | organization | Lab GCP Org 1 | gcp-reg-1 | cid-local-1 |
gcp-ent-2 | project | Lab GCP Project 1 | gcp-reg-2 | cid-local-1 |
Empty filters return both, gcp-ent-1 then gcp-ent-2. Extra unused
ids, filter, sort, limit, offset, and parameters still
return both (limit if sent is integer). SOURCE grouped
folders/organizations/projects is not the clone envelope.
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 registrations (cookie)
Empty filters return gcp-reg-1 then gcp-reg-2 with cid
cid-local-1. Success is 200 MSA persisted keys. Extra unused
query keys (ids, parameters) are ignored. SOURCE JSON array is
not the clone envelope. This is not CSPM GET
/cloud-connect-cspm-gcp/entities/account/v1, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST this registrations path, and not Cloud Azure
Registration GET
/cloud-security-registration-azure/entities/registrations/v1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/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-google-cloud/entities/registrations/v1?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-google-cloud/entities/registrations/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-google-cloud/entities/registrations/v1'
cs-local-cazr (cloud-azure-registration:read) is 403 on GET:
TOKEN='<access_token from cs-local-cazr>'
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-google-cloud/entities/registrations/v1'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 403
on GET:
TOKEN='<access_token from cs-local-cgcprw>'
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-google-cloud/entities/registrations/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-google-cloud/entities/registrations/v1'
List entities (cookie)
Empty filters return gcp-ent-1 then gcp-ent-2 with cid
cid-local-1. Success is 200 MSA persisted keys (entity_id,
entity_type, entity_name, registration_id, cid). Extra unused
query keys (ids, filter, sort, limit, offset, parameters)
are ignored (limit if sent is integer). SOURCE grouped
folders/organizations/projects is not the clone envelope. RPC
GetEntities. SOURCE cloud-registration-gcp-get-entities. PEP 8
get_entities. Request proto CloudGoogleGetEntitiesRequest.
GetEntities is cloud-google-cloud-registration:read. GetRegistration
stays cloud-google-cloud-registration:read. CreateRegistration /
DeleteRegistration / PostTerraformScript / PutRegistration / TriggerHealthCheck / UpdateRegistration stay
cloud-google-cloud-registration:write. This
is not GET/POST/PUT/DELETE
/cloud-security-registration-google-cloud/entities/registrations/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM GCP GET
/cloud-connect-cspm-gcp/entities/account/v1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/accounts/v1'
Extra unused query keys are ignored (limit=10 is integer):
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/accounts/v1?ids=ignored&filter=ignored&sort=ignored&limit=10&offset=0¶meters=x'
cs-local-hosts (hosts:read only) is 403 on GET entities:
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-google-cloud/entities/accounts/v1'
cs-local-cspm (cspm-registration:read) is 403 on GET entities:
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-google-cloud/entities/accounts/v1'
cs-local-cazr (cloud-azure-registration:read) is 403 on GET
entities:
TOKEN='<access_token from cs-local-cazr>'
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-google-cloud/entities/accounts/v1'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 403
on GET entities:
TOKEN='<access_token from cs-local-cgcprw>'
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-google-cloud/entities/accounts/v1'
No cookie and no Bearer is 401 on GET entities:
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/accounts/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). GET this accounts
path is distinct from GET/POST/PUT/DELETE this registrations path, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM
GCP GET /cloud-connect-cspm-gcp/entities/account/v1. This is not
the HelloService template (GET /api/hello). SOURCE grouped
folders/organizations/projects is not the clone envelope.
Create registration (cookie)
POST registration_name=Lab GCP 3 / deployment_method=terraform /
infra_project_id=gcp-lab-project-3 returns that row with
registration_id reg-lab-gcp-3, status registered, and cid
cid-local-1. Success is 200 MSA persisted keys. Extra unused
expansion / SOURCE resources wrap are ignored. SOURCE JSON array /
201 is not the clone envelope. Empty deployment_method →
terraform. This is not GET this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and
not CSPM POST /cloud-connect-cspm-gcp/entities/account/v1. Do
not seed Lab GCP 3 / reg-lab-gcp-3:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/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 '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Missing registration_name 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 '{"deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Empty deployment_method defaults to terraform:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 3","deployment_method":"","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Extra unused expansion / SOURCE resources wrap are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3","entity_id":"ignored","products":["ignored"],"resources":[{"ignored":true}],"status":"ignored","parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 200
on POST:
TOKEN='<access_token from cs-local-cgcprw>'
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 '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 403 on
POST:
TOKEN='<access_token from cs-local-cgcpr>'
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 '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/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 '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/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 '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). CSPM GCP is a
separate collection (/cloud-connect-cspm-gcp/entities/account/v1):
CSPM GCP. Cloud Azure Registration is a
separate collection
(/cloud-security-registration-azure/entities/registrations/v1):
Cloud Azure Registration. Azure
DownloadScript is a separate RPC
(POST /cloud-security-registration-azure/entities/scripts/v1). This is
not the HelloService template (GET /api/hello). GET this
registrations path is distinct from POST this registrations path,
PUT this registrations path, PATCH this registrations path,
DELETE this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
POST /cloud-security-registration-google-cloud/entities/registration-scans/v1,
and Azure healthcheck.
POST this registrations path is distinct from GET this registrations
path, PUT this registrations path, PATCH this registrations path,
DELETE this registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and
CSPM POST /cloud-connect-cspm-gcp/entities/account/v1.
Delete registration (cookie)
Create Lab GCP 3 first if it is missing. POST
registration_name=Lab GCP 3 / deployment_method=terraform /
infra_project_id=gcp-lab-project-3 returns that row with
registration_id reg-lab-gcp-3. Then DELETE ids=reg-lab-gcp-3
returns that row. Success is 200 MSA persisted keys
(registration_id, registration_name, status,
deployment_method, infra_project_id, cid). Extra unused query
parameters is ignored. SOURCE JSON array is not the clone
envelope. GET after DELETE lists gcp-reg-1 then gcp-reg-2 (no
reg-lab-gcp-3). This is not GET this registrations path, not
POST this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and
not CSPM GCP DELETE /cloud-connect-cspm-gcp/entities/account/v1.
RPC DeleteRegistration. SOURCE
cloud-registration-gcp-delete-registration. PEP 8
delete_registration. Request proto
CloudGoogleDeleteRegistrationRequest (Azure already owns
DeleteRegistrationRequest in platform.v1). Empty body. Query ids.
DeleteRegistration is cloud-google-cloud-registration:write.
GetRegistration stays cloud-google-cloud-registration:read.
GetEntities is cloud-google-cloud-registration:read.
CreateRegistration stays cloud-google-cloud-registration:write.
PostTerraformScript stays cloud-google-cloud-registration:write.
PutRegistration stays cloud-google-cloud-registration:write. TriggerHealthCheck stays cloud-google-cloud-registration:write. UpdateRegistration stays cloud-google-cloud-registration:write.
Create Lab GCP 3 first if missing:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
GET after lists gcp-reg-1 then gcp-reg-2:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
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-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
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-google-cloud/entities/registrations/v1'
Unknown 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-google-cloud/entities/registrations/v1?ids=reg-unknown'
Extra unused query parameters=x is ignored (still 200):
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3¶meters=x'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 200
on DELETE:
TOKEN='<access_token from cs-local-cgcprw>'
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-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 200 on
GET and 403 on DELETE:
TOKEN='<access_token from cs-local-cgcpr>'
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-google-cloud/entities/registrations/v1'
TOKEN='<access_token from cs-local-cgcpr>'
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-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
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-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
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-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). DELETE this
registrations path is distinct from GET this registrations path, POST
this registrations path, PUT this registrations path, PATCH this
registrations path, GET
/cloud-security-registration-google-cloud/entities/accounts/v1, POST
this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and
CSPM GCP DELETE /cloud-connect-cspm-gcp/entities/account/v1. This is
not the HelloService template (GET /api/hello). SOURCE array is
not the clone envelope.
Generate terraform script (cookie)
POST registration_id=gcp-reg-1 returns cid cid-local-1,
registration_id gcp-reg-1, url
/help/cloud-google-cloud-registration, and version v1. Success
is 200 MSA persisted keys (cid, registration_id, url,
version). Extra unused body (resources, parameters, vars_only,
entity_id, nested SOURCE settings) is ignored. SOURCE resources
wrap / error-only grid / writes / zip is not the clone envelope.
GET registrations after still 200. GET entities after still
200. This is not GET this registrations path, not POST this
registrations path, not DELETE this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not Azure DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, and not
CSPM GCP. RPC PostTerraformScript. SOURCE
cloud-registration-gcp-post-terraform-script. PEP 8
cloud_registration_gcp_post_terraform_script. Request proto
CloudGooglePostTerraformScriptRequest. PostTerraformScript is
cloud-google-cloud-registration:write. GetRegistration stays
cloud-google-cloud-registration:read. GetEntities is
cloud-google-cloud-registration:read. CreateRegistration stays
cloud-google-cloud-registration:write. DeleteRegistration stays
cloud-google-cloud-registration:write. PutRegistration stays
cloud-google-cloud-registration:write. TriggerHealthCheck stays
cloud-google-cloud-registration:write. UpdateRegistration stays
cloud-google-cloud-registration:write:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_id":"gcp-reg-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
Missing registration_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 '{"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
Unknown registration 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 '{"registration_id":"reg-unknown"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
Extra unused body is ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_id":"gcp-reg-1","parameters":"ignored","vars_only":true,"entity_id":"ignored","resources":[{"ignored":true}]}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 200
on POST terraform:
TOKEN='<access_token from cs-local-cgcprw>'
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 '{"registration_id":"gcp-reg-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 403 on
POST terraform:
TOKEN='<access_token from cs-local-cgcpr>'
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 '{"registration_id":"gcp-reg-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
cs-local-hosts (hosts:read only) is 403 on POST terraform:
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 '{"registration_id":"gcp-reg-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
No cookie and no Bearer is 401 on POST terraform:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"registration_id":"gcp-reg-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST this
scripts-terraform path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, GET this
accounts path, Azure DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, POST this registration-scans path, Azure healthcheck, and CSPM GCP.
This is not the HelloService template (GET /api/hello). SOURCE
resources wrap / error-only grid / writes / zip is not the
clone envelope.
Put registration (cookie)
PUT registration_name=Lab GCP 2 / infra_project_id=gcp-lab-project-2b
returns that row with registration_id gcp-reg-2, status
registered, deployment_method terraform, infra_project_id
gcp-lab-project-2b, and cid cid-local-1. Success is 200 MSA
persisted keys (registration_id, registration_name, status,
deployment_method, infra_project_id, cid). Extra unused body
(entity_id, products, resources, parameters, nested SOURCE
settings) is ignored. SOURCE array / writes is not the clone
envelope. Empty deployment_method / infra_project_id keep stored.
GET after lists gcp-reg-1 (gcp-lab-project-1) then gcp-reg-2
(gcp-lab-project-2b). GET entities after still 200. POST terraform
after still 200. PATCH after still 200. This is not GET this registrations path, not POST this
registrations path, PATCH this registrations path, not
DELETE this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM GCP. RPC PutRegistration. SOURCE
cloud-registration-gcp-put-registration. PEP 8
cloud_registration_gcp_put_registration. Request proto
CloudGooglePutRegistrationRequest. PutRegistration is
cloud-google-cloud-registration:write. GetRegistration stays
cloud-google-cloud-registration:read. GetEntities is
cloud-google-cloud-registration:read. CreateRegistration stays
cloud-google-cloud-registration:write. DeleteRegistration stays
cloud-google-cloud-registration:write. PostTerraformScript stays
cloud-google-cloud-registration:write. TriggerHealthCheck stays
cloud-google-cloud-registration:write. UpdateRegistration stays
cloud-google-cloud-registration:write:
curl -sS -X PUT -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
GET after lists gcp-reg-1 (gcp-lab-project-1) then gcp-reg-2
(gcp-lab-project-2b):
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Missing registration_name is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PUT -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Unknown registration_name is 400:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PUT -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP unknown","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Extra unused body is ignored:
curl -sS -X PUT -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b","entity_id":"ignored","products":["ignored"],"resources":[{"ignored":true}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Empty infra_project_id keeps the stored value:
curl -sS -X PUT -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":""}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 200
on PUT:
TOKEN='<access_token from cs-local-cgcprw>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PUT -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 403 on
PUT:
TOKEN='<access_token from cs-local-cgcpr>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PUT -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cs-local-hosts (hosts:read only) is 403 on PUT:
TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PUT -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
No cookie and no Bearer is 401 on PUT:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X PUT -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). PUT this
registrations path is distinct from GET/POST/DELETE this registrations
path, PATCH this registrations path, GET this accounts path,
POST this scripts-terraform path, POST this registration-scans path, Azure healthcheck, and CSPM GCP. This is not the
HelloService template (GET /api/hello). SOURCE array / writes is
not the clone envelope.
Trigger health check (cookie)
POST ids=gcp-reg-1 returns MSA {registration_id} gcp-reg-1.
Success is 200 MSA persisted keys (registration_id). Extra unused
query parameters is ignored. Empty body. Duplicate ids count once.
SOURCE JSON array is not the clone envelope. GET registrations
after still 200. GET entities after still 200. POST terraform
after still 200. PUT after still 200. PATCH after still 200. This is not GET this
registrations path, not POST this registrations path, not PUT
this registrations path, PATCH this registrations path,
not DELETE this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
not Azure healthcheck POST
/cloud-security-registration-azure/entities/registrations/healthcheck/v1,
and not CSPM GCP. RPC TriggerHealthCheck. SOURCE
cloud-registration-gcp-trigger-health-check. PEP 8
trigger_health_check. Request proto
CloudGoogleTriggerHealthCheckRequest (Azure already owns
CloudAzureTriggerHealthCheckRequest in platform.v1). Query ids.
TriggerHealthCheck is cloud-google-cloud-registration:write.
GetRegistration stays cloud-google-cloud-registration:read.
GetEntities is cloud-google-cloud-registration:read.
CreateRegistration stays cloud-google-cloud-registration:write.
DeleteRegistration stays cloud-google-cloud-registration:write.
PostTerraformScript stays cloud-google-cloud-registration:write.
PutRegistration stays cloud-google-cloud-registration:write:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registration-scans/v1?ids=gcp-reg-1'
Extra unused query parameters is ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registration-scans/v1?ids=gcp-reg-1¶meters=ignored'
Missing 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-google-cloud/entities/registration-scans/v1'
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-google-cloud/entities/registration-scans/v1?ids=reg-unknown'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 200
on POST registration-scans:
TOKEN='<access_token from cs-local-cgcprw>'
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-google-cloud/entities/registration-scans/v1?ids=gcp-reg-1'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 403 on
POST registration-scans:
TOKEN='<access_token from cs-local-cgcpr>'
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-google-cloud/entities/registration-scans/v1?ids=gcp-reg-1'
cs-local-hosts (hosts:read only) is 403 on POST
registration-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-google-cloud/entities/registration-scans/v1?ids=gcp-reg-1'
No cookie and no Bearer is 401 on POST registration-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-google-cloud/entities/registration-scans/v1?ids=gcp-reg-1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST this
registration-scans path is distinct from GET/POST/PUT/DELETE this
registrations path, PATCH this registrations path, GET this
accounts path, POST this scripts-terraform path, Azure healthcheck POST
/cloud-security-registration-azure/entities/registrations/healthcheck/v1,
and CSPM GCP. This is not the HelloService template
(GET /api/hello). SOURCE array is not the clone envelope.
Update registration (cookie)
PATCH ids=gcp-reg-2 / infra_project_id=gcp-lab-project-2c returns
that row with registration_id gcp-reg-2, status registered,
deployment_method terraform, infra_project_id
gcp-lab-project-2c, and cid cid-local-1. Success is 200 MSA
persisted keys (registration_id, registration_name, status,
deployment_method, infra_project_id, cid). Query ids one
registration_id. Extra unused body (entity_id, products,
resources, parameters, nested SOURCE settings) is ignored. SOURCE
array / 404 is not the clone envelope. Empty deployment_method /
infra_project_id / registration_name / status keep stored. GET
after lists gcp-reg-1 (gcp-lab-project-1) then gcp-reg-2
(gcp-lab-project-2c). GET entities after still 200. POST terraform
after still 200. PUT after still 200. POST registration-scans
after still 200. This is not PUT this registrations path, not
GET this registrations path, not POST this registrations path,
not DELETE this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
not POST
/cloud-security-registration-google-cloud/entities/registration-scans/v1,
and not CSPM GCP. RPC UpdateRegistration. SOURCE
cloud-registration-gcp-update-registration. PEP 8
cloud_registration_gcp_update_registration. Request proto
CloudGoogleUpdateRegistrationRequest (Azure already owns
UpdateRegistrationRequest in platform.v1). Query ids.
UpdateRegistration is cloud-google-cloud-registration:write.
GetRegistration stays cloud-google-cloud-registration:read.
GetEntities is cloud-google-cloud-registration:read.
CreateRegistration stays cloud-google-cloud-registration:write.
DeleteRegistration stays cloud-google-cloud-registration:write.
PostTerraformScript stays cloud-google-cloud-registration:write.
PutRegistration stays cloud-google-cloud-registration:write.
TriggerHealthCheck stays cloud-google-cloud-registration:write:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
GET after lists gcp-reg-1 (gcp-lab-project-1) then gcp-reg-2
(gcp-lab-project-2c):
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Missing ids 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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
Two unique ids 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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-1&ids=gcp-reg-2'
Unknown 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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=reg-unknown'
Extra unused body is ignored:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"infra_project_id":"gcp-lab-project-2c","entity_id":"ignored","products":["ignored"],"resources":[{"ignored":true}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
Empty infra_project_id keeps the stored value:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"infra_project_id":""}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
cs-local-cgcprw (cloud-google-cloud-registration:write) is 200
on PATCH:
TOKEN='<access_token from cs-local-cgcprw>'
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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 403 on
PATCH:
TOKEN='<access_token from cs-local-cgcpr>'
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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
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 '{"infra_project_id":"gcp-lab-project-2c"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=gcp-reg-2'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). PATCH this
registrations path is distinct from PUT this registrations path,
GET/POST/DELETE this registrations path, GET this accounts path,
POST this scripts-terraform path, POST this registration-scans path,
Azure healthcheck, and CSPM GCP. This is not the HelloService
template (GET /api/hello). SOURCE array / 404 is not the clone
envelope.
List (Bearer)
TOKEN='<access_token from a client with cloud-google-cloud-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cloud-google-cloud-registration:read → 200. cs-local-cgcpr →
200. A token without that scope (including hosts:read only, e.g.
cs-local-hosts, cspm-registration:read e.g. cs-local-cspm,
cloud-azure-registration:read e.g. cs-local-cazr, or
cloud-google-cloud-registration:write e.g. cs-local-cgcprw) →
403. Missing or revoked token → 401. GetRegistration stays
cloud-google-cloud-registration:read. GetEntities is
cloud-google-cloud-registration:read. PostTerraformScript stays
cloud-google-cloud-registration:write. PutRegistration stays
cloud-google-cloud-registration:write. TriggerHealthCheck stays
cloud-google-cloud-registration:write. UpdateRegistration stays
cloud-google-cloud-registration:write. SOURCE
cloud-registration-gcp-get-registration. PEP 8 get_registration.
Request proto CloudGoogleGetRegistrationRequest. This is not
CSPM GET /cloud-connect-cspm-gcp/entities/account/v1, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST this registrations path, not PUT this registrations
path, PATCH this registrations path, not DELETE this
registrations path, not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not Cloud Azure Registration GET
/cloud-security-registration-azure/entities/registrations/v1. SOURCE
JSON array is not the clone envelope. Compose OAuth clients
cs-local-cgcpr / cs-local-cgcpr-secret and cs-local-cgcprw /
cs-local-cgcprw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-google-cloud-registration:read — use the console cookie, or a
client you created with that scope.
List entities (Bearer)
TOKEN='<access_token from a client with cloud-google-cloud-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/accounts/v1'
cloud-google-cloud-registration:read → 200. cs-local-cgcpr →
200. A token without that scope (including hosts:read only, e.g.
cs-local-hosts, cspm-registration:read e.g. cs-local-cspm,
cloud-azure-registration:read e.g. cs-local-cazr, or
cloud-google-cloud-registration:write e.g. cs-local-cgcprw) →
403. Missing or revoked token → 401. GetEntities is
cloud-google-cloud-registration:read. GetRegistration stays
cloud-google-cloud-registration:read. CreateRegistration /
DeleteRegistration / PostTerraformScript / PutRegistration / TriggerHealthCheck / UpdateRegistration stay
cloud-google-cloud-registration:write. SOURCE
cloud-registration-gcp-get-entities. PEP 8 get_entities. Request
proto CloudGoogleGetEntitiesRequest. This is not GET/POST/PUT/DELETE
/cloud-security-registration-google-cloud/entities/registrations/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM GCP GET /cloud-connect-cspm-gcp/entities/account/v1.
Success 200 MSA persisted keys (entity_id, entity_type,
entity_name, registration_id, cid). Extra unused query ids,
filter, sort, limit, offset, parameters ignored (limit if
sent is integer). SOURCE grouped folders/organizations/projects is
not the clone envelope. Compose OAuth clients cs-local-cgcpr /
cs-local-cgcpr-secret and cs-local-cgcprw /
cs-local-cgcprw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-google-cloud-registration:read — use the console cookie, or a
client you created with that scope.
Create (Bearer)
TOKEN='<access_token from a client with cloud-google-cloud-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 3","deployment_method":"terraform","infra_project_id":"gcp-lab-project-3"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cloud-google-cloud-registration:write → 200 on POST.
cs-local-cgcprw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-google-cloud-registration:read e.g. cs-local-cgcpr) →
403. Missing or revoked token → 401. Session cookie can POST.
CreateRegistration stays cloud-google-cloud-registration:write.
GetRegistration stays cloud-google-cloud-registration:read.
GetEntities is cloud-google-cloud-registration:read.
DeleteRegistration is cloud-google-cloud-registration:write.
PostTerraformScript stays cloud-google-cloud-registration:write.
PutRegistration stays cloud-google-cloud-registration:write. TriggerHealthCheck stays cloud-google-cloud-registration:write. UpdateRegistration stays cloud-google-cloud-registration:write. SOURCE
cloud-registration-gcp-create-registration. PEP 8
create_registration. Request proto
CloudGoogleCreateRegistrationRequest. This is not GET this
registrations path, not PUT this registrations path, PATCH
this registrations path, not DELETE this registrations path, not
GET /cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM POST /cloud-connect-cspm-gcp/entities/account/v1.
SOURCE array / 201 is not the clone envelope. Extra unused
expansion / SOURCE resources wrap ignored. Duplicate name → 400.
Missing registration_name → 400. Created registration_id is
reg-<slug> (Lab GCP 3 → reg-lab-gcp-3). Empty
deployment_method → terraform. Do not seed Lab GCP 3 /
reg-lab-gcp-3. Compose OAuth clients cs-local-cgcpr /
cs-local-cgcpr-secret and cs-local-cgcprw /
cs-local-cgcprw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-google-cloud-registration:write — use the console cookie, or a
client you created with that scope.
Delete (Bearer)
TOKEN='<access_token from a client with cloud-google-cloud-registration:write>'
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1?ids=reg-lab-gcp-3'
cloud-google-cloud-registration:write → 200 on DELETE.
cs-local-cgcprw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-google-cloud-registration:read e.g. cs-local-cgcpr) →
403. Missing or revoked token → 401. Session cookie can DELETE.
cs-local-cgcpr cannot DELETE. cs-local-cgcprw can DELETE.
DeleteRegistration is cloud-google-cloud-registration:write.
GetRegistration stays cloud-google-cloud-registration:read.
GetEntities is cloud-google-cloud-registration:read.
CreateRegistration stays cloud-google-cloud-registration:write.
PostTerraformScript stays cloud-google-cloud-registration:write.
PutRegistration stays cloud-google-cloud-registration:write. TriggerHealthCheck stays cloud-google-cloud-registration:write. UpdateRegistration stays cloud-google-cloud-registration:write.
SOURCE cloud-registration-gcp-delete-registration. PEP 8
delete_registration. Request proto
CloudGoogleDeleteRegistrationRequest. This is not GET this
registrations path, not POST this registrations path, not PUT
this registrations path, PATCH this registrations path, not
GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and
not CSPM GCP DELETE /cloud-connect-cspm-gcp/entities/account/v1.
SOURCE array is not the clone envelope. Extra unused query
parameters is ignored. Duplicate DELETE → 400. Missing ids →
400. Unknown id → 400. Empty body. Query ids. Create Lab GCP 3 first if missing. Compose OAuth clients cs-local-cgcpr /
cs-local-cgcpr-secret and cs-local-cgcprw /
cs-local-cgcprw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-google-cloud-registration:write — use the console cookie, or a
client you created with that scope.
Generate terraform script (Bearer)
TOKEN='<access_token from a client with cloud-google-cloud-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"registration_id":"gcp-reg-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/scripts-terraform/v1'
cloud-google-cloud-registration:write → 200 on POST terraform.
cs-local-cgcprw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, cspm-registration:read
e.g. cs-local-cspm, cspm-registration:write,
cloud-azure-registration:read e.g. cs-local-cazr,
cloud-azure-registration:write, or
cloud-google-cloud-registration:read e.g. cs-local-cgcpr) →
403. Missing or revoked token → 401. Session cookie can POST
terraform. cs-local-cgcpr cannot POST terraform. cs-local-cgcprw
can POST terraform. PostTerraformScript stays
cloud-google-cloud-registration:write. GetRegistration stays
cloud-google-cloud-registration:read. GetEntities is
cloud-google-cloud-registration:read. CreateRegistration stays
cloud-google-cloud-registration:write. DeleteRegistration stays
cloud-google-cloud-registration:write. PutRegistration stays
cloud-google-cloud-registration:write. TriggerHealthCheck stays
cloud-google-cloud-registration:write. UpdateRegistration stays
cloud-google-cloud-registration:write. SOURCE
cloud-registration-gcp-post-terraform-script. PEP 8
cloud_registration_gcp_post_terraform_script. Request proto
CloudGooglePostTerraformScriptRequest. This is not GET this
registrations path, not POST this registrations path, not PUT
this registrations path, PATCH this registrations path,
not DELETE this registrations path, not GET
/cloud-security-registration-google-cloud/entities/accounts/v1,
not Azure DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, and not
CSPM GCP. SOURCE resources wrap / error-only grid / writes / zip
is not the clone envelope. Extra unused body is ignored. Missing
registration_id → 400. Unknown registration → 400. POST
registration_id=gcp-reg-1 returns cid cid-local-1, url
/help/cloud-google-cloud-registration, and version v1. GET
registrations after still 200. GET entities after still 200.
Compose OAuth clients cs-local-cgcpr / cs-local-cgcpr-secret and
cs-local-cgcprw / cs-local-cgcprw-secret are test-only. Live
traffic uses the console cookie. There is no seeded production client
with cloud-google-cloud-registration:write — use the console cookie,
or a client you created with that scope.
Put (Bearer)
TOKEN='<access_token from a client with cloud-google-cloud-registration:write>'
curl -sS -X PUT -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"registration_name":"Lab GCP 2","infra_project_id":"gcp-lab-project-2b"}' \
'http://127.0.0.1:8088/cloud-security-registration-google-cloud/entities/registrations/v1'
cloud-google-cloud-registration:write → 200 on PUT.
cs-local-cgcprw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, cspm-registration:read
e.g. cs-local-cspm, cspm-registration:write,
cloud-azure-registration:read e.g. cs-local-cazr,
cloud-azure-registration:write, or
cloud-google-cloud-registration:read e.g. cs-local-cgcpr) →
403. Missing or revoked token → 401. Session cookie can PUT.
cs-local-cgcpr cannot PUT. cs-local-cgcprw can PUT.
PutRegistration stays cloud-google-cloud-registration:write. TriggerHealthCheck stays cloud-google-cloud-registration:write. UpdateRegistration stays cloud-google-cloud-registration:write.
GetRegistration stays cloud-google-cloud-registration:read.
GetEntities is cloud-google-cloud-registration:read.
CreateRegistration stays cloud-google-cloud-registration:write.
DeleteRegistration stays cloud-google-cloud-registration:write.
PostTerraformScript stays cloud-google-cloud-registration:write.
SOURCE cloud-registration-gcp-put-registration. PEP 8
cloud_registration_gcp_put_registration. Request proto
CloudGooglePutRegistrationRequest. This is not GET this
registrations path, not POST this registrations path, PATCH this registrations path, not DELETE this registrations path,
not GET /cloud-security-registration-google-cloud/entities/accounts/v1,
not POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM GCP. SOURCE array / writes is not the clone
envelope. Extra unused body is ignored. Missing registration_name →
400. Unknown registration_name → 400. Empty
deployment_method / infra_project_id keep stored. PUT
registration_name=Lab GCP 2 / infra_project_id=gcp-lab-project-2b
returns gcp-reg-2 with that infra. GET after lists gcp-reg-1
(gcp-lab-project-1) then gcp-reg-2 (gcp-lab-project-2b). GET
entities after still 200. POST terraform after still 200.
PATCH after still 200. Compose OAuth
clients cs-local-cgcpr / cs-local-cgcpr-secret and cs-local-cgcprw
/ cs-local-cgcprw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-google-cloud-registration:write — use the console cookie, or a
client you created with that scope.