Cloud OCI Registration
Cloud OCI Registration is the OCI-tenancy-list collection for this CID
— GetAccount (SOURCE cloud-security-registration-oci-get-account,
PEP 8 get_account), CreateAccount (SOURCE
cloud-security-registration-oci-create-account, PEP 8
create_account), DeleteAccount (SOURCE
cloud-security-registration-oci-delete-account, PEP 8
delete_account), DownloadScript (SOURCE
cloud-security-registration-oci-download-script, PEP 8
download_script), RotateKey (SOURCE
cloud-security-registration-oci-rotate-key, PEP 8
rotate_key), UpdateAccount (SOURCE
cloud-security-registration-oci-update-account, PEP 8
update_account), and ValidateTenancy (SOURCE
cloud-security-registration-oci-validate-tenancy, PEP 8
validate_tenancy). Request proto GetAccountRequest. Create request
proto CreateAccountRequest. Delete request proto
CloudOciDeleteAccountRequest. Download request proto
CloudOciDownloadScriptRequest. Rotate request proto
CloudOciRotateKeyRequest. Update request proto
CloudOciUpdateAccountRequest. Validate request proto
CloudOciValidateTenancyRequest. The path is
GET /cloud-security-registration-oci/combined/accounts/v1,
POST /cloud-security-registration-oci/entities/accounts/v1,
PATCH /cloud-security-registration-oci/entities/accounts/v1,
DELETE /cloud-security-registration-oci/entities/accounts/v1,
POST /cloud-security-registration-oci/entities/scripts/v1,
POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, and
POST /cloud-security-registration-oci/entities/account-validate/v1.
Image assessment policies / remaining cloud
and other cloud/container collections are not implemented (not yet).
This is not leftover
GET this scripts path. GET this
combined accounts path is distinct from POST this entities accounts
path. POST this entities accounts path is distinct from DELETE this
entities accounts path. DELETE this entities accounts path is distinct
from PATCH this entities accounts path. PATCH this entities accounts
path is distinct from POST this account-validate path. POST this scripts path
is distinct from GET this combined accounts path, POST this entities
accounts path, DELETE this entities accounts path, PATCH this
entities accounts path, leftover GET this scripts path, POST this rotate-keys path, POST this account-validate path, Cloud Azure Registration DownloadScript
POST /cloud-security-registration-azure/entities/scripts/v1, Cloud
Google Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and CSPM. POST this rotate-keys path is distinct from GET this combined
accounts path, POST this entities accounts path, DELETE this entities
accounts path, POST this scripts path, PATCH this entities
accounts path, leftover GET this scripts path, POST
/cloud-security-registration-oci/entities/account-validate/v1, Cloud
Azure Registration DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, Cloud Google
Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and CSPM. This is not Cloud
Google Cloud Registration
(GET /cloud-security-registration-google-cloud/entities/registrations/v1):
Cloud Google Cloud Registration. This
is not Cloud Azure Registration
(GET /cloud-security-registration-azure/entities/registrations/v1):
Cloud Azure Registration. This is not
Cloud AWS Registration
(GET /cloud-security-registration-aws/entities/account/v1):
Cloud AWS Registration. This is not CSPM
(GET /cloud-connect-cspm-gcp/entities/account/v1,
GET /cloud-connect-cspm-azure/entities/account/v1,
GET /cloud-connect-cspm-aws/entities/account/v1). 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: CloudOciRegistrationService. REST schemas:
API reference. Cloud OCI Registration uses query params, not
FQL. Extra unused query keys filter, sort, next_token, limit,
offset, and parameters are ignored (limit if sent is integer).
Clone GET success is JSON MSA 200 persisted keys (tenancy_ocid,
tenancy_name, registration_id, registration_name, home_region,
overall_status, cid). SOURCE array / 204 / 207 is not
the clone envelope. POST body JSON {tenancy_ocid, user_name, home_region}. Extra unused products / resources / parameters
ignored. Clone POST success is JSON MSA 200 persisted GET keys
(not SOURCE array / 201 / 207). SOURCE array / 201 / 207
is not the clone envelope. DELETE uses query ids (required) and
an empty body. Extra unused parameters ignored. Clone DELETE success
is JSON MSA 200 empty resources. SOURCE 207 / writes is
not the clone envelope. POST scripts body JSON {tenancy_ocid}.
Extra unused deployment_method / is_download / resources /
parameters ignored. Clone POST scripts success is JSON MSA 200
persisted CloudOciScript keys (cid, tenancy_ocid, stack_url,
zip_url, version). SOURCE array is not the clone envelope. POST
rotate-keys body JSON {tenancy_ocid}. Extra unused resources /
parameters ignored. Clone POST rotate-keys success is JSON MSA 200
persisted CloudOciKey keys (cid, tenancy_ocid, finger_print,
public_key). Rotation is stored; it is not a JSON response field.
SOURCE array / 201 / 207 is not the clone envelope. PATCH
body JSON {tenancy_ocid, user_name, home_region}. Extra unused
group_name / policy_name / products / stack_ocid / user_email /
user_ocid / registration_description / registration_name /
resources / parameters ignored. Empty user_name / home_region
keep stored. Clone PATCH success is JSON MSA 200 persisted GET keys
(not SOURCE array / 201 / 207). SOURCE array / 201 / 207
is not the clone envelope. GET
this combined accounts path is distinct from POST this entities
accounts path, DELETE
/cloud-security-registration-oci/entities/accounts/v1, POST
/cloud-security-registration-oci/entities/scripts/v1, PATCH
/cloud-security-registration-oci/entities/accounts/v1, leftover GET
this scripts path, POST
/cloud-security-registration-oci/entities/account-rotate-keys/v1,
POST
/cloud-security-registration-oci/entities/account-validate/v1, Cloud
Google Cloud Registration GET
/cloud-security-registration-google-cloud/entities/registrations/v1,
Cloud Azure Registration GET
/cloud-security-registration-azure/entities/registrations/v1, Cloud
AWS Registration GET
/cloud-security-registration-aws/entities/account/v1, Azure
DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, Cloud Google
Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and CSPM. POST
this entities accounts path is distinct from GET this combined accounts
path, DELETE this entities accounts path, POST this scripts path,
PATCH this entities accounts path, leftover GET this scripts
path, POST this rotate-keys path, POST this account-validate path,
Cloud Google Cloud Registration Create, Cloud Azure Registration, Cloud
AWS Registration POST /cloud-security-registration-aws/entities/account/v1,
and CSPM. DELETE this entities accounts path is distinct from GET this
combined accounts path, POST this entities accounts path, POST this
scripts path, PATCH this entities accounts path, leftover GET
this scripts path, POST this rotate-keys path, POST this account-validate path, Cloud
Google Cloud Registration Delete, Cloud AWS
Registration DELETE /cloud-security-registration-aws/entities/account/v1,
and CSPM. POST this scripts path is distinct from GET this combined
accounts path, POST this entities accounts path, DELETE this entities
accounts path, PATCH this entities accounts path, leftover GET
this scripts path, POST this rotate-keys path, POST this account-validate path, Azure
DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, Cloud Google
Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and CSPM.
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-oci-registration:readfor GET combined accounts and POST scripts, orcloud-oci-registration:writefor POST entities accounts, PATCH entities accounts, DELETE entities accounts, POST rotate-keys, and POST account-validate
A session cookie bypasses OAuth scopes and can GET combined accounts,
POST entities accounts, PATCH entities accounts, DELETE entities accounts, POST scripts,
POST rotate-keys, and POST account-validate.
Seed client cs-local-hosts (hosts:read only) cannot list tenancies,
create, delete, update, download a script, or rotate a key, or validate a tenancy (403). Unit tests use a client named cs-local-cspm with
cspm-registration:read; that client cannot list tenancies, create, delete, update,
download a script, or rotate a key, or validate a tenancy (403). cspm-registration:write is 403. Unit tests use a
client named cs-local-cawsr with cloud-aws-registration:read; that
client cannot list tenancies, create, delete, update, download a script, or rotate a key, or validate a tenancy (403). Unit tests use a
client named cs-local-cazr with cloud-azure-registration:read; that
client cannot list tenancies, create, delete, update, download a script, or rotate a key, or validate a tenancy (403). Unit tests use a
client named cs-local-cgcpr with cloud-google-cloud-registration:read;
that client cannot list tenancies, create, delete, update, download a script, or rotate a key, or validate a tenancy (403). Unit tests
use a Compose OAuth test-only client named cs-local-cocir /
cs-local-cocir-secret with cloud-oci-registration:read; that client
can list tenancies (200) and can POST scripts (200) and
cannot POST entities accounts, PATCH entities accounts, DELETE entities accounts, POST
rotate-keys, or POST account-validate (403). Unit tests use a Compose OAuth
test-only client named cs-local-cocirw / cs-local-cocirw-secret with
cloud-oci-registration:write; that client can POST entities
accounts, PATCH entities accounts, DELETE entities accounts, POST rotate-keys, and POST account-validate (200) and
cannot list tenancies (403 on GET) and cannot POST scripts
(403).
GetAccount stays
cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. Live traffic uses the console cookie.
There is no seeded production client with
cloud-oci-registration:read or cloud-oci-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-oci/combined/accounts/v1 | List Cloud OCI Registration tenancies. RPC GetAccount. SOURCE cloud-security-registration-oci-get-account. PEP 8 get_account. cloud-oci-registration:read. Request proto GetAccountRequest. Extra unused query filter, sort, next_token, limit, offset, parameters ignored (limit if sent is integer). Success 200 MSA persisted keys (tenancy_ocid, tenancy_name, registration_id, registration_name, home_region, overall_status, cid). Distinct from POST /cloud-security-registration-oci/entities/accounts/v1, DELETE /cloud-security-registration-oci/entities/accounts/v1, POST /cloud-security-registration-oci/entities/scripts/v1, PATCH /cloud-security-registration-oci/entities/accounts/v1, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, POST /cloud-security-registration-oci/entities/account-validate/v1, Cloud Google Cloud Registration GET /cloud-security-registration-google-cloud/entities/registrations/v1, Cloud Azure Registration GET /cloud-security-registration-azure/entities/registrations/v1, Cloud AWS Registration GET /cloud-security-registration-aws/entities/account/v1, Azure DownloadScript POST /cloud-security-registration-azure/entities/scripts/v1, Cloud Google Cloud Registration terraform scripts POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, and CSPM. SOURCE array / 204 / 207 is not the clone envelope. Empty query lists all. Cap is 100. Empty store → empty resources, still 200. |
POST | /cloud-security-registration-oci/entities/accounts/v1 | Create a Cloud OCI Registration tenancy. RPC CreateAccount. SOURCE cloud-security-registration-oci-create-account. PEP 8 create_account. cloud-oci-registration:write. Request proto CreateAccountRequest. Body JSON {tenancy_ocid, user_name, home_region}. Extra unused products / resources / parameters ignored. Success 200 MSA persisted GET keys (tenancy_ocid, tenancy_name, registration_id, registration_name, home_region, overall_status, cid). Distinct from GET /cloud-security-registration-oci/combined/accounts/v1, DELETE this entities accounts path, POST this scripts path, PATCH this entities accounts path, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, POST /cloud-security-registration-oci/entities/account-validate/v1, Cloud Google Cloud Registration Create POST /cloud-security-registration-google-cloud/entities/registrations/v1, Cloud Azure Registration, Cloud AWS Registration POST /cloud-security-registration-aws/entities/account/v1, and CSPM. SOURCE array / 201 / 207 is not the clone envelope. Duplicate tenancy_ocid 400. Missing tenancy_ocid → 400. Empty user_name → Lab OCI 3. Empty home_region → us-ashburn-1. Created registration_id is reg-<slug(tenancy_ocid)> (oci-tenancy-3 → reg-oci-tenancy-3). Do not seed oci-tenancy-3. |
DELETE | /cloud-security-registration-oci/entities/accounts/v1 | Delete a Cloud OCI Registration tenancy. RPC DeleteAccount. SOURCE cloud-security-registration-oci-delete-account. PEP 8 delete_account. cloud-oci-registration:write. Request proto CloudOciDeleteAccountRequest. Query ids (required). Empty body. Extra unused parameters ignored. Success 200 MSA empty resources. Distinct from GET /cloud-security-registration-oci/combined/accounts/v1, POST this entities accounts path, POST this scripts path, PATCH this entities accounts path, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, POST /cloud-security-registration-oci/entities/account-validate/v1, Cloud Google Cloud Registration Delete DELETE /cloud-security-registration-google-cloud/entities/registrations/v1, Cloud AWS Registration DELETE /cloud-security-registration-aws/entities/account/v1, and CSPM. SOURCE 207 / writes is not the clone envelope. Duplicate DELETE 400. Missing ids → 400. Unknown id → 400. Mixed known + unknown ids → 400 and no row deleted. |
PATCH | /cloud-security-registration-oci/entities/accounts/v1 | Update a Cloud OCI Registration tenancy. RPC UpdateAccount. SOURCE cloud-security-registration-oci-update-account. PEP 8 update_account. cloud-oci-registration:write. Request proto CloudOciUpdateAccountRequest. Body JSON {tenancy_ocid, user_name, home_region}. Extra unused group_name / policy_name / products / stack_ocid / user_email / user_ocid / registration_description / registration_name / resources / parameters ignored. Empty user_name / home_region keep stored. Success 200 MSA persisted GET keys (tenancy_ocid, tenancy_name, registration_id, registration_name, home_region, overall_status, cid). Distinct from GET /cloud-security-registration-oci/combined/accounts/v1, POST this entities accounts path, DELETE this entities accounts path, POST this scripts path, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, POST /cloud-security-registration-oci/entities/account-validate/v1, Cloud Google Cloud Registration, Cloud Azure Registration, Cloud AWS Registration PATCH /cloud-security-registration-aws/entities/account/v1, and CSPM. SOURCE array / 201 / 207 is not the clone envelope. Missing tenancy_ocid → 400. Unknown tenancy → 400. PATCH tenancy_ocid=oci-tenancy-2 / user_name=Lab OCI 2b / home_region=us-ashburn-1 returns registration_id oci-reg-2, tenancy_name Lab OCI 2b, registration_name Lab OCI 2b, home_region us-ashburn-1, overall_status registered, cid cid-local-1. |
POST | /cloud-security-registration-oci/entities/scripts/v1 | Download a Cloud OCI Registration tenancy script. RPC DownloadScript. SOURCE cloud-security-registration-oci-download-script. PEP 8 download_script. cloud-oci-registration:read. Request proto CloudOciDownloadScriptRequest. Body JSON {tenancy_ocid}. Extra unused deployment_method / is_download / resources / parameters ignored. Success 200 MSA persisted CloudOciScript keys (cid, tenancy_ocid, stack_url, zip_url, version). Distinct from GET /cloud-security-registration-oci/combined/accounts/v1, POST /cloud-security-registration-oci/entities/accounts/v1, DELETE /cloud-security-registration-oci/entities/accounts/v1, PATCH this entities accounts path, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, POST /cloud-security-registration-oci/entities/account-validate/v1, Cloud Azure Registration DownloadScript POST /cloud-security-registration-azure/entities/scripts/v1, Cloud Google Cloud Registration terraform scripts POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, and CSPM. SOURCE array is not the clone envelope. Missing tenancy_ocid → 400. Unknown tenancy → 400. |
POST | /cloud-security-registration-oci/entities/account-rotate-keys/v1 | Rotate a Cloud OCI Registration tenancy key. RPC RotateKey. SOURCE cloud-security-registration-oci-rotate-key. PEP 8 rotate_key. cloud-oci-registration:write. Request proto CloudOciRotateKeyRequest. Body JSON {tenancy_ocid}. Extra unused resources / parameters ignored. Success 200 MSA persisted CloudOciKey keys (cid, tenancy_ocid, finger_print, public_key). Distinct from GET /cloud-security-registration-oci/combined/accounts/v1, POST /cloud-security-registration-oci/entities/accounts/v1, DELETE /cloud-security-registration-oci/entities/accounts/v1, POST /cloud-security-registration-oci/entities/scripts/v1, PATCH this entities accounts path, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-validate/v1, Cloud Azure Registration DownloadScript POST /cloud-security-registration-azure/entities/scripts/v1, Cloud Google Cloud Registration terraform scripts POST /cloud-security-registration-google-cloud/entities/scripts-terraform/v1, and CSPM. SOURCE array / 201 / 207 is not the clone envelope. Missing tenancy_ocid → 400. Unknown tenancy → 400. First rotate of seed oci-tenancy-1 returns finger_print fp-oci-tenancy-1-2 and public_key pk-oci-tenancy-1-2. Rotation is stored; it is not a JSON response field. Format fp-<tenancy_ocid>-<n> and pk-<tenancy_ocid>-<n>. Repeat POST increments rotation. If the account exists and no key row exists, first rotate inserts rotation 1. |
POST | /cloud-security-registration-oci/entities/account-validate/v1 | Validate a Cloud OCI Registration tenancy. RPC ValidateTenancy. SOURCE cloud-security-registration-oci-validate-tenancy. PEP 8 validate_tenancy. cloud-oci-registration:write. Request proto CloudOciValidateTenancyRequest. Body JSON {tenancy_ocid}. Extra unused products / resources / parameters ignored. Success 200 MSA {cid, tenancy_ocid, home_region, overall_status}. Distinct from GET /cloud-security-registration-oci/combined/accounts/v1, POST /cloud-security-registration-oci/entities/accounts/v1, DELETE /cloud-security-registration-oci/entities/accounts/v1, POST /cloud-security-registration-oci/entities/scripts/v1, PATCH this entities accounts path, leftover GET this scripts path, POST /cloud-security-registration-oci/entities/account-rotate-keys/v1, Cloud AWS Registration validate-accounts POST /cloud-security-registration-aws/entities/account/validate/v1, Cloud Azure Registration validate-registration POST /cloud-security-registration-azure/entities/registrations/validate/v1, other cloud, and CSPM. SOURCE array / products / writes.resources_affected is not the clone envelope. Missing tenancy_ocid → 400. Unknown tenancy → 400. POST tenancy_ocid=oci-tenancy-1 returns cid cid-local-1, tenancy_ocid oci-tenancy-1, home_region us-ashburn-1, overall_status registered. Do not mutate stored rows. GET after still lists oci-tenancy-1 then oci-tenancy-2. |
Empty query params return every tenancy in this CID. Extra unused
filter, sort, next_token, limit, offset, and parameters are
ignored (limit if sent is integer). Default sort is tenancy_ocid
ascending. Cap is 100. Empty store → empty resources, still
200.
JSON is snake_case MSA. Tenancy keys: tenancy_ocid, tenancy_name,
registration_id, registration_name, home_region,
overall_status, cid. Script keys: cid, tenancy_ocid,
stack_url, zip_url, version. CloudOciKey keys: cid,
tenancy_ocid, finger_print, public_key. Rotation is stored; it is
not a JSON response field. Validation keys: cid, tenancy_ocid,
home_region, overall_status. Clone success is JSON MSA 200,
not SOURCE array and not SOURCE 204 / 201 / 207. SOURCE
array / 204 / 201 / 207 is not the clone envelope.
GetAccount stays cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. This is not leftover
GET this scripts path, not POST
/cloud-security-registration-oci/entities/account-validate/v1, not
Cloud Google Cloud Registration Create, not Cloud Azure
Registration Download script, not Cloud Google Cloud Registration
Generate terraform script, not Cloud AWS Registration, and not CSPM.
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). GET this combined
accounts path is distinct from POST this entities accounts path.
POST this entities accounts path is distinct from DELETE this entities
accounts path. DELETE this entities accounts path is distinct from
PATCH this entities accounts path. POST this scripts path is
distinct from GET this combined accounts path, POST this entities
accounts path, DELETE this entities accounts path, and POST this
rotate-keys path. POST this rotate-keys path is distinct from GET this
combined accounts path, POST this entities accounts path, DELETE this
entities accounts path, POST this scripts path, PATCH this
entities accounts path, leftover GET this scripts path, POST this account-validate path, other cloud, and CSPM.
Seed tenancies
tenancy_ocid | tenancy_name | registration_id | registration_name | home_region | overall_status | cid |
|---|---|---|---|---|---|---|
oci-tenancy-1 | Lab OCI 1 | oci-reg-1 | Lab OCI 1 | us-ashburn-1 | registered | cid-local-1 |
oci-tenancy-2 | Lab OCI 2 | oci-reg-2 | Lab OCI 2 | us-phoenix-1 | registered | cid-local-1 |
Empty filters return both, oci-tenancy-1 then oci-tenancy-2. Extra
unused filter, sort, next_token, limit, offset, and
parameters still return both (limit if sent is integer). SOURCE
array / 204 / 207 is not the clone envelope. Do not
seed oci-tenancy-3.
Seed scripts
tenancy_ocid | cid | stack_url | zip_url | version |
|---|---|---|---|---|
oci-tenancy-1 | cid-local-1 | /help/cloud-oci-registration | /help/cloud-oci-registration | v1 |
oci-tenancy-2 | cid-local-1 | /help/cloud-oci-registration | /help/cloud-oci-registration | v1 |
POST tenancy_ocid=oci-tenancy-1 returns that script row. SOURCE array
is not the clone envelope.
Seed keys
tenancy_ocid | cid | rotation | finger_print | public_key |
|---|---|---|---|---|
oci-tenancy-1 | cid-local-1 | 1 | fp-oci-tenancy-1-1 | pk-oci-tenancy-1-1 |
oci-tenancy-2 | cid-local-1 | 1 | fp-oci-tenancy-2-1 | pk-oci-tenancy-2-1 |
Rotation is stored; it is not a JSON response field. First POST
tenancy_ocid=oci-tenancy-1 returns finger_print
fp-oci-tenancy-1-2 and public_key pk-oci-tenancy-1-2. SOURCE
array / 201 / 207 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 tenancies (cookie)
Empty filters return oci-tenancy-1 then oci-tenancy-2 with cid
cid-local-1. Success is 200 MSA persisted keys. Extra unused
query keys (filter, sort, next_token, limit, offset,
parameters) are ignored (limit if sent is integer). SOURCE JSON
array / 204 / 207 is not the clone envelope. This is not
POST /cloud-security-registration-oci/entities/accounts/v1, not
DELETE /cloud-security-registration-oci/entities/accounts/v1, not
POST /cloud-security-registration-oci/entities/scripts/v1, not
PATCH
/cloud-security-registration-oci/entities/accounts/v1, not leftover
GET this scripts path, not POST this rotate-keys path, POST this account-validate path, not Cloud Google Cloud
Registration GET
/cloud-security-registration-google-cloud/entities/registrations/v1,
not Cloud Azure Registration GET
/cloud-security-registration-azure/entities/registrations/v1, not
Cloud AWS Registration GET
/cloud-security-registration-aws/entities/account/v1, and not CSPM:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/v1'
Extra unused query keys are ignored (limit=1 is integer):
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/v1?filter=ignored&sort=ignored&next_token=ignored&limit=1&offset=1¶meters=x'
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-oci/combined/accounts/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-oci/combined/accounts/v1'
cs-local-cawsr (cloud-aws-registration:read) is 403 on GET:
TOKEN='<access_token from cs-local-cawsr>'
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-oci/combined/accounts/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-oci/combined/accounts/v1'
cs-local-cgcpr (cloud-google-cloud-registration:read) is 403 on
GET:
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-oci/combined/accounts/v1'
cs-local-cocirw (cloud-oci-registration:write) is 403 on GET:
TOKEN='<access_token from cs-local-cocirw>'
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-oci/combined/accounts/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-oci/combined/accounts/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). GET this combined
accounts path is distinct from POST this entities accounts path,
DELETE this entities accounts path, POST this scripts path, PATCH /cloud-security-registration-oci/entities/accounts/v1, leftover
GET this scripts path, POST this rotate-keys path, POST this account-validate path,
Cloud Google Cloud Registration, Cloud Azure Registration, Cloud AWS
Registration, and CSPM. This is not the HelloService template
(GET /api/hello). SOURCE array / 204 / 207 is not the
clone envelope.
Create account (cookie)
POST tenancy_ocid=oci-tenancy-3 / user_name=Lab OCI 3 /
home_region=us-ashburn-1 returns that row with tenancy_name
Lab OCI 3, registration_id reg-oci-tenancy-3,
registration_name Lab OCI 3, overall_status registered, and
cid cid-local-1. Success is 200 MSA persisted GET keys. Extra
unused products / resources / parameters are ignored. SOURCE JSON
array / 201 / 207 is not the clone envelope. Empty
user_name → Lab OCI 3. Empty home_region → us-ashburn-1. GET
after lists oci-tenancy-1 then oci-tenancy-2 then oci-tenancy-3.
This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not DELETE
this entities accounts path, not POST this scripts path, not
PATCH this entities accounts path, not leftover GET this
scripts path, not POST this rotate-keys path, POST this account-validate path,
not Cloud Google Cloud
Registration Create POST
/cloud-security-registration-google-cloud/entities/registrations/v1,
not Cloud AWS Registration POST
/cloud-security-registration-aws/entities/account/v1, and not CSPM.
Do not seed oci-tenancy-3:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
GET after lists oci-tenancy-1 then oci-tenancy-2 then
oci-tenancy-3:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/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 '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Missing tenancy_ocid 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 '{"user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Empty home_region defaults to us-ashburn-1:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":""}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Extra unused products / resources are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1","products":["ignored"],"resources":[{"ignored":true}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
cs-local-cocirw (cloud-oci-registration:write) is 200 on POST:
TOKEN='<access_token from cs-local-cocirw>'
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 '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
cs-local-cocir (cloud-oci-registration:read) is 403 on POST:
TOKEN='<access_token from cs-local-cocir>'
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 '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/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 '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/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 '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST this entities
accounts path is distinct from GET this combined accounts path,
DELETE this entities accounts path, POST this scripts path, PATCH this entities accounts path, leftover GET this scripts path,
POST this rotate-keys path, POST this account-validate path,
Cloud Google Cloud Registration Create, Cloud Azure Registration, Cloud
AWS Registration, and CSPM. This is not the HelloService template
(GET /api/hello). SOURCE array / 201 / 207 is not the
clone envelope.
Delete account (cookie)
DELETE ids=oci-tenancy-3 returns empty resources. Success is 200.
Create that row first if it is missing (POST tenancy_ocid=oci-tenancy-3
/ user_name=Lab OCI 3 / home_region=us-ashburn-1). A later GET lists
oci-tenancy-1 then oci-tenancy-2 (no oci-tenancy-3). A second DELETE
of the same id is 400. Extra unused parameters are ignored. Empty
body. SOURCE 207 / writes is not the clone envelope. Missing
ids is 400. Unknown tenancy_ocid is 400. If any id is unknown
or empty, 400 and no row is deleted. This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST this
entities accounts path, not POST this scripts path, not PATCH this entities accounts path, not leftover GET this scripts
path, not POST this rotate-keys path, POST this account-validate path,
not Cloud Google Cloud Registration Delete DELETE
/cloud-security-registration-google-cloud/entities/registrations/v1,
not Cloud AWS Registration DELETE
/cloud-security-registration-aws/entities/account/v1, and not CSPM.
RPC DeleteAccount. SOURCE
cloud-security-registration-oci-delete-account. PEP 8
delete_account. Request proto CloudOciDeleteAccountRequest.
DeleteAccount stays cloud-oci-registration:write. GetAccount stays
cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write:
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1?ids=oci-tenancy-3'
GET after lists oci-tenancy-1 then oci-tenancy-2 (no
oci-tenancy-3):
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/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-oci/entities/accounts/v1?ids=oci-tenancy-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-oci/entities/accounts/v1'
Unknown tenancy_ocid 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-oci/entities/accounts/v1?ids=oci-tenancy-missing'
Extra unused parameters are ignored (still 200 when ids is
valid):
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1?ids=oci-tenancy-3¶meters=x'
cs-local-cocirw (cloud-oci-registration:write) is 200 on DELETE:
TOKEN='<access_token from cs-local-cocirw>'
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-oci/entities/accounts/v1?ids=oci-tenancy-3'
cs-local-cocir (cloud-oci-registration:read) is 403 on DELETE:
TOKEN='<access_token from cs-local-cocir>'
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-oci/entities/accounts/v1?ids=oci-tenancy-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-oci/entities/accounts/v1?ids=oci-tenancy-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-oci/entities/accounts/v1?ids=oci-tenancy-3'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). DELETE this entities
accounts path is distinct from GET this combined accounts path, POST
this entities accounts path, POST this scripts path, PATCH
this entities accounts path, leftover GET this scripts path, POST this rotate-keys path, POST this account-validate path, Cloud
Google Cloud Registration Delete, Cloud Azure Registration, Cloud AWS
Registration Delete, and CSPM. This is not the HelloService
template (GET /api/hello). SOURCE 207 / writes is not the
clone envelope.
Download script (cookie)
POST tenancy_ocid=oci-tenancy-1 returns cid cid-local-1,
tenancy_ocid oci-tenancy-1, stack_url
/help/cloud-oci-registration, zip_url
/help/cloud-oci-registration, and version v1. Success is 200
MSA persisted CloudOciScript keys (cid, tenancy_ocid, stack_url,
zip_url, version). Extra unused deployment_method / is_download
/ resources / parameters are ignored. SOURCE array is not the
clone envelope. This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not PATCH this entities accounts path, not leftover
GET this scripts path, not POST this rotate-keys path, POST this account-validate path, not Cloud Azure Registration DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, not Cloud
Google Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM. RPC DownloadScript. SOURCE
cloud-security-registration-oci-download-script. PEP 8
download_script. Request proto CloudOciDownloadScriptRequest.
GetAccount and DownloadScript stay cloud-oci-registration:read.
CreateAccount, DeleteAccount, RotateKey, UpdateAccount, and ValidateTenancy stay cloud-oci-registration:write:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
Missing tenancy_ocid 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":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
Unknown tenancy 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 '{"tenancy_ocid":"oci-tenancy-missing"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
Extra unused deployment_method / is_download / resources /
parameters are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1","deployment_method":"ignored","is_download":true,"resources":[{"id":"x"}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
cs-local-cocir (cloud-oci-registration:read) is 200 on POST
scripts:
TOKEN='<access_token from cs-local-cocir>'
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
cs-local-cocirw (cloud-oci-registration:write) is 403 on POST
scripts:
TOKEN='<access_token from cs-local-cocirw>'
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
cs-local-hosts (hosts:read only) is 403 on POST scripts:
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
No cookie and no Bearer is 401 on POST scripts:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST this scripts
path is distinct from GET this combined accounts path, POST this
entities accounts path, DELETE this entities accounts path, PATCH this entities accounts path, leftover GET this scripts path,
POST this rotate-keys path, POST this account-validate path, Cloud Azure Registration
Download script, Cloud Google Cloud Registration Generate terraform
script, and CSPM. This is not the HelloService template
(GET /api/hello). SOURCE array is not the clone envelope.
Rotate key (cookie)
POST tenancy_ocid=oci-tenancy-1 returns cid cid-local-1,
tenancy_ocid oci-tenancy-1, finger_print
fp-oci-tenancy-1-2, and public_key pk-oci-tenancy-1-2. Success
is 200 MSA persisted CloudOciKey keys (cid, tenancy_ocid,
finger_print, public_key). Extra unused resources /
parameters are ignored. Rotation is stored; it is not a JSON
response field. Format fp-<tenancy_ocid>-<n> and
pk-<tenancy_ocid>-<n>. Repeat POST increments rotation (seed
second POST is fp-oci-tenancy-1-3 / pk-oci-tenancy-1-3). If the
account exists and no key row exists, first rotate inserts rotation
1. SOURCE array / 201 / 207 is not the clone envelope.
This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not POST this scripts path, not PATCH this
entities accounts path, not leftover GET this scripts path,
not POST
/cloud-security-registration-oci/entities/account-validate/v1, not
Cloud Azure Registration DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, not Cloud
Google Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM. RPC RotateKey. SOURCE
cloud-security-registration-oci-rotate-key. PEP 8
rotate_key. Request proto CloudOciRotateKeyRequest.
GetAccount and DownloadScript stay cloud-oci-registration:read.
CreateAccount, DeleteAccount, RotateKey, UpdateAccount, and ValidateTenancy stay
cloud-oci-registration:write:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
Missing tenancy_ocid 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 '{"resources":[{"ignored":true}]}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
Unknown tenancy 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 '{"tenancy_ocid":"oci-tenancy-missing"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
Extra unused resources / parameters are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1","resources":[{"id":"x"}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
cs-local-cocirw (cloud-oci-registration:write) is 200 on POST
rotate-keys:
TOKEN='<access_token from cs-local-cocirw>'
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
cs-local-cocir (cloud-oci-registration:read) is 403 on POST
rotate-keys:
TOKEN='<access_token from cs-local-cocir>'
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
cs-local-hosts (hosts:read only) is 403 on POST rotate-keys:
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
No cookie and no Bearer is 401 on POST rotate-keys:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST this rotate-keys
path is distinct from GET this combined accounts path, POST this
entities accounts path, DELETE this entities accounts path, POST this
scripts path, PATCH this entities accounts path, leftover GET
this scripts path, POST this account-validate path, Cloud Azure Registration
Download script, Cloud Google Cloud Registration Generate terraform
script, and CSPM. This is not the HelloService template
(GET /api/hello). SOURCE array / 201 / 207 is not the
clone envelope.
Update account (cookie)
PATCH tenancy_ocid=oci-tenancy-2 / user_name=Lab OCI 2b /
home_region=us-ashburn-1 returns that row with tenancy_name
Lab OCI 2b, registration_id oci-reg-2, registration_name
Lab OCI 2b, home_region us-ashburn-1, overall_status
registered, and cid cid-local-1. Success is 200 MSA
persisted GET keys (tenancy_ocid, tenancy_name, registration_id,
registration_name, home_region, overall_status, cid). Extra
unused group_name / policy_name / products / stack_ocid /
user_email / user_ocid / registration_description /
registration_name / resources / parameters are ignored. Empty
user_name / home_region keep stored. SOURCE array / 201 /
207 is not the clone envelope. GET after lists oci-tenancy-1
Lab OCI 1 / us-ashburn-1 then oci-tenancy-2 Lab OCI 2b /
us-ashburn-1. This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not POST this scripts path, not leftover GET this scripts
path, not POST this rotate-keys path, not POST
/cloud-security-registration-oci/entities/account-validate/v1, not
Cloud AWS Registration PATCH
/cloud-security-registration-aws/entities/account/v1, and not
CSPM. RPC UpdateAccount. SOURCE
cloud-security-registration-oci-update-account. PEP 8
update_account. Request proto CloudOciUpdateAccountRequest.
GetAccount and DownloadScript stay cloud-oci-registration:read.
CreateAccount, DeleteAccount, RotateKey, UpdateAccount, and ValidateTenancy stay
cloud-oci-registration:write:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
GET after lists oci-tenancy-1 Lab OCI 1 / us-ashburn-1 then
oci-tenancy-2 Lab OCI 2b / us-ashburn-1:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/v1'
Missing tenancy_ocid 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 '{"user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Unknown tenancy 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 '{"tenancy_ocid":"oci-tenancy-missing","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Empty user_name / home_region keep stored:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-2","user_name":"","home_region":""}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Extra unused group_name / policy_name / products / stack_ocid /
user_email / user_ocid / registration_description /
registration_name / resources / parameters are ignored:
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1","group_name":"ignored","policy_name":"ignored","products":["ignored"],"stack_ocid":"ignored","user_email":"ignored","user_ocid":"ignored","registration_description":"ignored","registration_name":"ignored","resources":[{"id":"x"}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
cs-local-cocirw (cloud-oci-registration:write) is 200 on PATCH:
TOKEN='<access_token from cs-local-cocirw>'
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 '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
cs-local-cocir (cloud-oci-registration:read) is 403 on PATCH:
TOKEN='<access_token from cs-local-cocir>'
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 '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/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 '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/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 '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). PATCH this entities
accounts path is distinct from GET this combined accounts path, POST
this entities accounts path, DELETE this entities accounts path, POST
this scripts path, leftover GET this scripts path, POST this
rotate-keys path, POST this account-validate path, Cloud Azure
Registration, Cloud Google Cloud Registration, Cloud AWS Registration
PATCH, and CSPM. This is not the HelloService template
(GET /api/hello). SOURCE array / 201 / 207 is not the
clone envelope.
Validate tenancy (cookie)
POST tenancy_ocid=oci-tenancy-1 returns cid cid-local-1,
tenancy_ocid oci-tenancy-1, home_region us-ashburn-1, and
overall_status registered. Success is 200 MSA {cid, tenancy_ocid, home_region, overall_status}. Extra unused products /
resources / parameters are ignored. SOURCE array / products /
writes.resources_affected is not the clone envelope. GET after
still lists oci-tenancy-1 then oci-tenancy-2. Do not mutate
stored rows. This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not POST this scripts path, not PATCH this
entities accounts path, not leftover GET this scripts path,
not POST this rotate-keys path, not Cloud AWS Registration
validate-accounts POST
/cloud-security-registration-aws/entities/account/validate/v1, not
Cloud Azure Registration validate-registration POST
/cloud-security-registration-azure/entities/registrations/validate/v1,
and not CSPM. RPC ValidateTenancy. SOURCE
cloud-security-registration-oci-validate-tenancy. PEP 8
validate_tenancy. Request proto CloudOciValidateTenancyRequest.
GetAccount and DownloadScript stay cloud-oci-registration:read.
CreateAccount, DeleteAccount, RotateKey, UpdateAccount, and
ValidateTenancy stay cloud-oci-registration:write:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
GET after still lists oci-tenancy-1 then oci-tenancy-2:
curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/v1'
Missing tenancy_ocid 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 '{"products":["ignored"]}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
Unknown tenancy 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 '{"tenancy_ocid":"oci-tenancy-missing"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
Extra unused products / resources / parameters are ignored:
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1","products":["ignored"],"resources":[{"id":"x"}],"parameters":"ignored"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
cs-local-cocirw (cloud-oci-registration:write) is 200 on POST
account-validate:
TOKEN='<access_token from cs-local-cocirw>'
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
cs-local-cocir (cloud-oci-registration:read) is 403 on POST
account-validate:
TOKEN='<access_token from cs-local-cocir>'
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 '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
cs-local-hosts (hosts:read only) is 403 on POST
account-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}" \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
No cookie and no Bearer is 401 on POST account-validate:
curl -sS -o /dev/null -w '%{http_code}\n' \
-X POST -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
Image assessment policies / remaining cloud and other
cloud collections are not implemented (not yet). POST this
account-validate path is distinct from GET this combined accounts
path, POST this entities accounts path, DELETE this entities accounts
path, POST this scripts path, PATCH this entities accounts path,
leftover GET this scripts path, POST this rotate-keys path, Cloud AWS
Registration validate-accounts, Cloud Azure Registration
validate-registration, other cloud, and CSPM. This is not the
HelloService template (GET /api/hello). SOURCE array / products /
writes.resources_affected is not the clone envelope.
List (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-oci/combined/accounts/v1'
cloud-oci-registration:read → 200. cs-local-cocir → 200. A
token without that scope (including hosts:read only, e.g.
cs-local-hosts, cspm-registration:read e.g. cs-local-cspm,
cloud-aws-registration:read e.g. cs-local-cawsr,
cloud-azure-registration:read e.g. cs-local-cazr,
cloud-google-cloud-registration:read e.g. cs-local-cgcpr, or
cloud-oci-registration:write e.g. cs-local-cocirw) → 403.
Missing or revoked token → 401. GetAccount stays
cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-get-account. PEP 8 get_account.
Request proto GetAccountRequest. This is not POST
/cloud-security-registration-oci/entities/accounts/v1, not DELETE
/cloud-security-registration-oci/entities/accounts/v1, not POST
/cloud-security-registration-oci/entities/scripts/v1, not PATCH /cloud-security-registration-oci/entities/accounts/v1,
not leftover GET this scripts path, not POST this rotate-keys path, POST this account-validate path, not
Cloud Google Cloud Registration GET
/cloud-security-registration-google-cloud/entities/registrations/v1,
not Cloud Azure Registration GET
/cloud-security-registration-azure/entities/registrations/v1, not
Cloud AWS Registration GET
/cloud-security-registration-aws/entities/account/v1, and not
CSPM. SOURCE JSON array / 204 / 207 is not the clone
envelope. Compose OAuth clients cs-local-cocir /
cs-local-cocir-secret and cs-local-cocirw /
cs-local-cocirw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-oci-registration:read — use the console cookie, or a client you
created with that scope.
Create (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-3","user_name":"Lab OCI 3","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
cloud-oci-registration:write → 200 on POST. cs-local-cocirw →
200. A token without that scope (including hosts:read only, e.g.
cs-local-hosts, or cloud-oci-registration:read e.g.
cs-local-cocir) → 403. Missing or revoked token → 401. Session
cookie can POST. cs-local-cocir cannot POST. cs-local-cocirw can
POST. CreateAccount stays cloud-oci-registration:write. GetAccount
stays cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-create-account. PEP 8
create_account. Request proto CreateAccountRequest. This is
not GET /cloud-security-registration-oci/combined/accounts/v1,
not DELETE this entities accounts path, not POST this scripts
path, not PATCH
this entities accounts path, not leftover GET this scripts path,
not POST this rotate-keys path, POST this account-validate path, not Cloud
Google Cloud Registration
Create POST
/cloud-security-registration-google-cloud/entities/registrations/v1,
not Cloud AWS Registration POST
/cloud-security-registration-aws/entities/account/v1, and not
CSPM. SOURCE array / 201 / 207 is not the clone envelope.
Extra unused products / resources ignored. Duplicate
tenancy_ocid → 400. Missing tenancy_ocid → 400. Empty
user_name → Lab OCI 3. Empty home_region → us-ashburn-1. Created
registration_id is reg-<slug> (oci-tenancy-3 →
reg-oci-tenancy-3). Do not seed oci-tenancy-3. Compose OAuth
clients cs-local-cocir / cs-local-cocir-secret and cs-local-cocirw
/ cs-local-cocirw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-oci-registration:write — use the console cookie, or a client
you created with that scope.
Delete (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:write>'
curl -sS -X DELETE -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1?ids=oci-tenancy-3'
cloud-oci-registration:write → 200 on DELETE. cs-local-cocirw →
200. A token without that scope (including hosts:read only, e.g.
cs-local-hosts, or cloud-oci-registration:read e.g.
cs-local-cocir) → 403. Missing or revoked token → 401. Session
cookie can DELETE. cs-local-cocir cannot DELETE. cs-local-cocirw can
DELETE. DeleteAccount stays cloud-oci-registration:write. GetAccount
stays cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-delete-account. PEP 8
delete_account. Request proto CloudOciDeleteAccountRequest. This
is not GET /cloud-security-registration-oci/combined/accounts/v1,
not POST this entities accounts path, not POST this scripts
path, not PATCH this
entities accounts path, not leftover GET this scripts path,
not POST this rotate-keys path, POST this account-validate path, not Cloud
Google Cloud Registration Delete DELETE
/cloud-security-registration-google-cloud/entities/registrations/v1,
not Cloud AWS Registration DELETE
/cloud-security-registration-aws/entities/account/v1, and not
CSPM. SOURCE 207 / writes is not the clone envelope. Extra
unused parameters ignored. Duplicate DELETE → 400. Missing ids
→ 400. Unknown id → 400. If any id is unknown or empty, 400
and no row is deleted. Compose OAuth clients cs-local-cocir /
cs-local-cocir-secret and cs-local-cocirw /
cs-local-cocirw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-oci-registration:write — use the console cookie, or a client
you created with that scope.
Download script (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:read>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/scripts/v1'
cloud-oci-registration:read → 200 on POST scripts.
cs-local-cocir → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-oci-registration:write e.g. cs-local-cocirw) → 403.
Missing or revoked token → 401. Session cookie can POST scripts.
cs-local-cocir can POST scripts. cs-local-cocirw cannot POST
scripts. GetAccount stays cloud-oci-registration:read. DownloadScript
stays cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-download-script. PEP 8
download_script. Request proto CloudOciDownloadScriptRequest.
This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not PATCH this entities accounts path, not leftover
GET this scripts path, not POST this rotate-keys path, POST this account-validate path, not Cloud Azure Registration DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, not Cloud
Google Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM. SOURCE array is not the clone envelope. Extra
unused deployment_method / is_download / resources / parameters
are ignored. Missing tenancy_ocid → 400. Unknown tenancy →
400. POST tenancy_ocid=oci-tenancy-1 returns cid cid-local-1,
stack_url /help/cloud-oci-registration, zip_url
/help/cloud-oci-registration, and version v1. Compose OAuth
clients cs-local-cocir / cs-local-cocir-secret and cs-local-cocirw
/ cs-local-cocirw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-oci-registration:read — use the console cookie, or a client you
created with that scope.
Rotate key (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-rotate-keys/v1'
cloud-oci-registration:write → 200 on POST rotate-keys.
cs-local-cocirw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-oci-registration:read e.g. cs-local-cocir) → 403.
Missing or revoked token → 401. Session cookie can POST rotate-keys.
cs-local-cocir cannot POST rotate-keys. cs-local-cocirw can POST
rotate-keys. GetAccount stays cloud-oci-registration:read.
DownloadScript stays cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-rotate-key. PEP 8
rotate_key. Request proto CloudOciRotateKeyRequest.
This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not POST this scripts path, not PATCH this
entities accounts path, not leftover GET this scripts path,
not POST
/cloud-security-registration-oci/entities/account-validate/v1, not
Cloud Azure Registration DownloadScript POST
/cloud-security-registration-azure/entities/scripts/v1, not Cloud
Google Cloud Registration terraform scripts POST
/cloud-security-registration-google-cloud/entities/scripts-terraform/v1,
and not CSPM. SOURCE array / 201 / 207 is not the clone
envelope. Extra unused resources / parameters are ignored. Missing
tenancy_ocid → 400. Unknown tenancy → 400. POST
tenancy_ocid=oci-tenancy-1 returns cid cid-local-1,
finger_print fp-oci-tenancy-1-2, and public_key
pk-oci-tenancy-1-2. Rotation is stored; it is not a JSON response
field. Compose OAuth clients cs-local-cocir /
cs-local-cocir-secret and cs-local-cocirw /
cs-local-cocirw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-oci-registration:write — use the console cookie, or a client
you created with that scope.
Update (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:write>'
curl -sS -X PATCH -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-2","user_name":"Lab OCI 2b","home_region":"us-ashburn-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/accounts/v1'
cloud-oci-registration:write → 200 on PATCH. cs-local-cocirw →
200. A token without that scope (including hosts:read only, e.g.
cs-local-hosts, or cloud-oci-registration:read e.g.
cs-local-cocir) → 403. Missing or revoked token → 401. Session
cookie can PATCH. cs-local-cocir cannot PATCH. cs-local-cocirw can
PATCH. GetAccount stays cloud-oci-registration:read. DownloadScript
stays cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-update-account. PEP 8
update_account. Request proto CloudOciUpdateAccountRequest. This
is not GET /cloud-security-registration-oci/combined/accounts/v1,
not POST this entities accounts path, not DELETE this entities
accounts path, not POST this scripts path, not leftover GET
this scripts path, not POST this rotate-keys path, not leftover
POST /cloud-security-registration-oci/entities/account-validate/v1,
not Cloud AWS Registration PATCH
/cloud-security-registration-aws/entities/account/v1, and not
CSPM. SOURCE array / 201 / 207 is not the clone envelope.
Extra unused group_name / policy_name / products / stack_ocid /
user_email / user_ocid / registration_description /
registration_name / resources / parameters ignored. Empty
user_name / home_region keep stored. Missing tenancy_ocid →
400. Unknown tenancy → 400. PATCH tenancy_ocid=oci-tenancy-2
/ user_name=Lab OCI 2b / home_region=us-ashburn-1 returns cid
cid-local-1, tenancy_name Lab OCI 2b, registration_name
Lab OCI 2b, home_region us-ashburn-1, registration_id
oci-reg-2. Compose OAuth clients cs-local-cocir /
cs-local-cocir-secret and cs-local-cocirw /
cs-local-cocirw-secret are test-only. Live traffic uses the console
cookie. There is no seeded production client with
cloud-oci-registration:write — use the console cookie, or a client
you created with that scope.
Validate tenancy (Bearer)
TOKEN='<access_token from a client with cloud-oci-registration:write>'
curl -sS -X POST -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
-H 'Content-Type: application/json' \
-d '{"tenancy_ocid":"oci-tenancy-1"}' \
'http://127.0.0.1:8088/cloud-security-registration-oci/entities/account-validate/v1'
cloud-oci-registration:write → 200 on POST account-validate.
cs-local-cocirw → 200. A token without that scope (including
hosts:read only, e.g. cs-local-hosts, or
cloud-oci-registration:read e.g. cs-local-cocir) → 403.
Missing or revoked token → 401. Session cookie can POST
account-validate. cs-local-cocir cannot POST account-validate.
cs-local-cocirw can POST account-validate. GetAccount stays
cloud-oci-registration:read. DownloadScript stays
cloud-oci-registration:read. CreateAccount stays
cloud-oci-registration:write. DeleteAccount stays
cloud-oci-registration:write. RotateKey stays
cloud-oci-registration:write. UpdateAccount stays
cloud-oci-registration:write. ValidateTenancy stays
cloud-oci-registration:write. SOURCE
cloud-security-registration-oci-validate-tenancy. PEP 8
validate_tenancy. Request proto CloudOciValidateTenancyRequest.
This is not GET
/cloud-security-registration-oci/combined/accounts/v1, not POST
this entities accounts path, not DELETE this entities accounts
path, not POST this scripts path, not PATCH this
entities accounts path, not leftover GET this scripts path,
not POST this rotate-keys path, not Cloud AWS Registration
validate-accounts POST
/cloud-security-registration-aws/entities/account/validate/v1, not
Cloud Azure Registration validate-registration POST
/cloud-security-registration-azure/entities/registrations/validate/v1,
and not CSPM. SOURCE array / products / writes.resources_affected
is not the clone envelope. Extra unused products / resources /
parameters are ignored. Missing tenancy_ocid → 400. Unknown
tenancy → 400. POST tenancy_ocid=oci-tenancy-1 returns cid
cid-local-1, tenancy_ocid oci-tenancy-1, home_region
us-ashburn-1, overall_status registered. Do not mutate stored
rows. GET after still lists oci-tenancy-1 then oci-tenancy-2. Compose
OAuth clients cs-local-cocir / cs-local-cocir-secret and
cs-local-cocirw / cs-local-cocirw-secret are test-only. Live traffic
uses the console cookie. There is no seeded production client with
cloud-oci-registration:write — use the console cookie, or a client
you created with that scope.
OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.