Skip to main content
Sub-user API

Bucket policy rules

Give a sub-user access to one bucket at a time, in that bucket's bucket policy, with the Sub-user API.

A bucket policy rule is an access rule that lives in one bucket's bucket policy and names one sub-user. It covers exactly one bucket, or some folders in it. To cover several buckets with one rule, use an inline policy rule instead. Allows from both types add up, and any Deny wins.

Through the Sub-user API, rules are for sub-users only:

  • grantee_type must be "subuser". "public" or "external" answers 403 CLI_NOT_AVAILABLE.
  • You can read public rules and rules for other accounts, but changing, suspending, resuming or deleting one answers 403 CLI_NOT_AVAILABLE. Use the console.
  • A write on a rule that isn't yours answers 404 CLI_RULE_NOT_FOUND.

A sub-user can only be given buckets in one of its own regions, and only the S3 actions sub-users may have. GET /inline-policies/catalog lists them: see Get the catalog.

Paths are relative to https://cli.zata.ai/cli/v1. {bucket} is the bucket name, {ruleId} the rule's id, and {subuserId} the sub-user's KC_id. Python examples use the call() helper from Authentication.

MethodPathWhat it does
GET/buckets/{bucket}/accessList a bucket's rules
GET/buckets/{bucket}/access/policyRead the bucket's live bucket policy
GET/buckets/{bucket}/access/subuser/{subuserId}One sub-user's active rules on a bucket
POST/buckets/{bucket}/accessGive a sub-user access to the bucket
GET/buckets/{bucket}/access/{ruleId}Get one rule
PUT/buckets/{bucket}/access/{ruleId}Change a rule
DELETE/buckets/{bucket}/access/{ruleId}Remove the access
POST/buckets/{bucket}/access/{ruleId}/suspendTurn a rule off for now
POST/buckets/{bucket}/access/{ruleId}/resumeTurn a suspended rule back on
GET/subusers/{subuserId}/bucketsEvery bucket a sub-user can reach
POST/subusers/{subuserId}/access/bulkGive a sub-user several buckets at once
GET/access/rulesAll your rules, page by page
GET/access/permissionsPresets, actions and conditions
POST/access/validate-actionsCheck a list of action names

List a bucket's rules​

GET/buckets/{bucket}/access

Lists every rule in the bucket's bucket policy, for all grantees. Each rule has the fields shown in Create a rule.

Path parameters

NameDescription
bucketThe bucket name.

Query parameters

NameTypeRequiredDescription
regionstringYesThe bucket's region, as the exact code idr01 or bom01.
include_externalstringNotrue adds external_policies: { "hasExternal", "count" }, the number of rules on the bucket that were not created in Zata.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/buckets/reports/access?region=idr01"
200 OK
{
"bucket_name": "reports",
"region": "idr01",
"bucket_region": "idr01",
"rules_count": 1,
"rules": [
{
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"grantee_type": "subuser",
"grantee_id": "5f2c8a1e-0000-4000-8000-000000000001",
"effect": "Allow",
"actions": ["s3:ListBucket", "s3:GetObject"],
"scope_type": "prefix",
"resources": ["monthly/*"],
"status": "active",
"permission_display": "Monthly reports",
"scope_display": "monthly/* only"
}
]
}

Shortened: each rule has all the fields shown under Create a rule.

Errors

StatusCodeWhen
400(none)"Region is required".
404BUCKET_NOT_FOUNDNo such bucket in the region, or it isn't yours.
409BUCKET_POLICY_MALFORMEDThe bucket policy can't be read. Fix it in the console or with an S3 tool.

Get a bucket's bucket policy​

GET/buckets/{bucket}/access/policy

Returns the bucket policy JSON exactly as it is now, including statements you wrote yourself. Read only: the Sub-user API cannot edit a bucket policy directly.

Path parameters

NameDescription
bucketThe bucket name.

Query parameters

NameTypeRequiredDescription
regionstringYesidr01 or bom01.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/buckets/reports/access/policy?region=idr01"
200 OK
{
"bucket_name": "reports",
"region": "idr01",
"bucket_region": "idr01",
"policy": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Zata-0d1e2f3a-0000-4000-8000-000000000006-list",
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam:::user/5f2c8a1e-0000-4000-8000-000000000001" },
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::reports"],
"Condition": { "StringLike": { "s3:prefix": ["monthly/*"] } }
},
{
"Sid": "Zata-0d1e2f3a-0000-4000-8000-000000000006",
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam:::user/5f2c8a1e-0000-4000-8000-000000000001" },
"Action": ["s3:GetObject"],
"Resource": ["arn:aws:s3:::reports/monthly/*"]
}
]
}
}

A folder rule is written as two statements: the -list one lets the sub-user list that folder. The policy may also hold other statements, such as ones you wrote yourself.

Errors

StatusCodeWhen
400(none)"region is required".
409BUCKET_POLICY_MALFORMEDThe bucket policy can't be read.

List a sub-user's rules on a bucket​

GET/buckets/{bucket}/access/subuser/{subuserId}

Lists one sub-user's active rules on one bucket, of both types: bucket policy rules and inline policy rules.

Path parameters

NameDescription
bucketThe bucket name.
subuserIdThe sub-user's KC_id.

Query parameters

NameTypeRequiredDescription
regionstringYesidr01 or bom01.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/buckets/reports/access/subuser/$SUBUSER_ID?region=idr01"
200 OK
{
"bucket_name": "reports",
"region": "idr01",
"bucket_region": "idr01",
"subuser_id": "5f2c8a1e-0000-4000-8000-000000000001",
"rules_count": 1,
"rules": [
{
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"effect": "Allow",
"actions": ["s3:ListBucket", "s3:GetObject"],
"scope_type": "prefix",
"resources": ["monthly/*"],
"status": "active"
}
]
}

Shortened. An inline policy rule shows with "type": "inline" and an id of the form inline:<region>:<sid>:<bucket>.

Errors

StatusCodeWhen
400(none)"Region is required".
401(none)The sub-user is not yours.

Create a rule​

POST/buckets/{bucket}/access

Gives one sub-user access to this bucket, or to folders in it. The sub-user gets a notification.

scope_type defaults to bucket. To limit the rule to folders, send "scope_type": "prefix" together with resources. Sending resources alone is refused.

Path parameters

NameDescription
bucketThe bucket name. One bucket only.

Body

FieldTypeRequiredDescription
grantee_typestringYes"subuser".
grantee_idstringYesThe sub-user's KC_id.
regionstringYesThe bucket's region, idr01 or bom01. It must be one of the sub-user's regions. bucket_region is accepted too.
actionsarray of stringsYesS3 actions such as s3:GetObject. Only the actions in the catalog; no wildcards.
effectstringNoAllow (default) or Deny.
scope_typestringNobucket (default): the whole bucket. prefix: only the folders in resources.
resourcesarray of stringsWith prefixFolders, such as monthly/. Stored as monthly/*. Must be empty with bucket.
conditionsobjectNoAWS-style conditions, such as {"IpAddress": {"aws:SourceIp": ["203.0.113.0/24"]}}. See below.
permission_presetstringNoA label such as view. It does not change the actions; always send actions.
notesstringNoA name for the rule, shown in the console.
grantee_display_namestringNoHow the sub-user is shown on this rule.

Conditions on a bucket policy rule:

  • Operators: StringEquals, StringNotEquals, StringLike, StringNotLike, IpAddress, NotIpAddress, Bool, DateGreaterThan, DateGreaterThanEquals, DateLessThan, DateLessThanEquals, NumericEquals, NumericLessThan, NumericLessThanEquals, NumericGreaterThan, NumericGreaterThanEquals. The …IfExists forms work only in inline policy rules.
  • Keys: aws:SourceIp, aws:SecureTransport, aws:CurrentTime, aws:EpochTime, aws:Referer, aws:UserAgent, s3:prefix, s3:delimiter, s3:max-keys.
  • At most 10 operators, 10 keys per operator, and 1 to 50 values per key. Each value is a non-empty string of up to 1,024 characters.
  • For access that ends on a date, use {"DateLessThan": {"aws:CurrentTime": "2026-12-31T23:59:59Z"}}.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST --data '{
"grantee_type": "subuser",
"grantee_id": "'"$SUBUSER_ID"'",
"region": "idr01",
"actions": ["s3:ListBucket", "s3:GetObject"],
"scope_type": "prefix",
"resources": ["monthly/"],
"notes": "Monthly reports"
}' \
"https://cli.zata.ai/cli/v1/buckets/reports/access"
201 Created
{
"message": "Access rule created successfully",
"rule": {
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"bucket_name": "reports",
"bucket_region": "idr01",
"grantee_type": "subuser",
"grantee_id": "5f2c8a1e-0000-4000-8000-000000000001",
"grantee_display_name": null,
"effect": "Allow",
"actions": ["s3:ListBucket", "s3:GetObject"],
"permission_preset": null,
"scope_type": "prefix",
"resources": ["monthly/*"],
"conditions": null,
"status": "active",
"suspended_reason": null,
"notes": "Monthly reports",
"createdAt": "2026-11-25T10:20:00.000Z",
"updatedAt": "2026-11-25T10:20:00.000Z",
"region": "idr01",
"permission_display": "Monthly reports",
"scope_display": "monthly/* only",
"restrictions_display": [],
"grantee_display": "5f2c8a1e-0000-4000-8000-000000000001",
"effect_display": "Allow"
}
}

Shortened: a few bookkeeping fields are left out.

Errors

StatusCodeWhen
400(none)A required field is missing, or scope_type and resources don't match. error says which.
400BUCKET_POLICY_SINGLE_BUCKETThe request names more than one bucket. Create one rule per bucket, or use an inline policy rule.
400REGION_UNKNOWNThe region is not a Zata region.
400INVALID_EFFECT, INVALID_ACTIONS, UNKNOWN_ACTION, ACTIONS_NOT_ALLOWEDeffect or actions is not valid.
400SUBUSER_ACTION_FORBIDDENAn action sub-users may not have.
400PREFIX_SCOPE_ACTION_FORBIDDENA bucket-wide action (such as s3:GetBucketVersioning) on a folder rule.
400INVALID_CONDITIONS, CONDITION_NOT_ALLOWEDA condition operator, key or value is not allowed.
400SUBUSER_NOT_FOUNDgrantee_id is not one of your sub-users.
400SUBUSER_REGION_MISMATCHThe sub-user is not in the bucket's region.
403REGION_NOT_ALLOWEDThe region is not available.
404BUCKET_NOT_FOUNDNo such bucket in the region, or it isn't yours.
409LOG_BUCKET_CANNOT_BE_SHAREDThe bucket receives access logs, so it can't be shared.
409OBJECT_LOCK_OPT_IN_REQUIREDUpload, retention or legal hold on an Object Lock bucket whose sub-user Object Lock setting is off. Turn it on in the console first.
409BUCKET_POLICY_TOO_LARGEThe bucket policy would grow past 256 KB.
409BUCKET_POLICY_MALFORMEDThe bucket policy can't be read. Nothing was written.
409POLICY_LOCK_TIMEOUT, POLICY_LOCK_LOST, BUCKET_POLICY_CONFLICTAnother change to the bucket policy happened at the same time. Read the rules again and retry.

Get a rule​

GET/buckets/{bucket}/access/{ruleId}

Returns one rule, with the fields shown in Create a rule.

Path parameters

NameDescription
bucketThe bucket name.
ruleIdThe rule's id.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/buckets/reports/access/$RULE_ID"
200 OK

The rule object itself, as in the rule field of Create a rule.

Errors

StatusCodeWhen
404(none)"Access rule not found".

Change a rule​

PUT/buckets/{bucket}/access/{ruleId}

Changes a rule. Send only the fields you change. actions replaces the whole list. An action the rule already has may stay even if it is no longer allowed for sub-users, but no new one may be added.

Path parameters

NameDescription
bucketThe bucket name.
ruleIdThe rule's id.

Body

FieldTypeRequiredDescription
effectstringNoAllow or Deny.
actionsarray of stringsNoThe new list of actions.
scope_typestringNobucket or prefix.
resourcesarray of stringsNoFolders, for prefix. Sending resources alone switches the rule to prefix, or to bucket when the list is empty.
conditionsobjectNoAs in Create a rule.
permission_presetstringNoLabel only.
notesstringNoA name for the rule.
grantee_display_namestringNoHow the sub-user is shown.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-H "Content-Type: application/json" \
-X PUT --data '{"actions": ["s3:ListBucket", "s3:GetObject", "s3:PutObject"]}' \
"https://cli.zata.ai/cli/v1/buckets/reports/access/$RULE_ID"
200 OK
{
"message": "Access updated successfully",
"rule": {
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"actions": ["s3:ListBucket", "s3:GetObject", "s3:PutObject"],
"status": "active"
}
}

Shortened: rule has all the fields shown in Create a rule.

Errors: those of Create a rule, plus:

StatusCodeWhen
404(none)"Access rule not found".
409CUSTOMER_STATEMENT_READ_ONLYThe rule is a statement you wrote yourself with an S3 tool. It can only be deleted.

Delete a rule​

DELETE/buckets/{bucket}/access/{ruleId}

Removes the rule from the bucket policy, and the sub-user loses that access.

Path parameters

NameDescription
bucketThe bucket name.
ruleIdThe rule's id.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-X DELETE \
"https://cli.zata.ai/cli/v1/buckets/reports/access/$RULE_ID"
200 OK
{
"success": true,
"message": "Access rule deleted successfully"
}

Errors

StatusCodeWhen
404(none)"Access rule not found".
409BUCKET_POLICY_CONFLICTThe bucket policy still carries the rule after the write. The rule is kept; retry.
409POLICY_LOCK_TIMEOUT, POLICY_LOCK_LOSTAnother change to the bucket policy happened at the same time. Retry.

Suspend a rule​

POST/buckets/{bucket}/access/{ruleId}/suspend

Takes the rule out of the bucket policy but keeps it, so you can resume it later. Suspending a suspended rule changes nothing.

Path parameters

NameDescription
bucketThe bucket name.
ruleIdThe rule's id.

Body

FieldTypeRequiredDescription
reasonstringNoWhy, shown as suspended_reason. Default manual.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST --data '{"reason": "Contract paused"}' \
"https://cli.zata.ai/cli/v1/buckets/reports/access/$RULE_ID/suspend"
200 OK
{
"message": "Access suspended",
"rule": {
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"status": "suspended",
"suspended_reason": "Contract paused"
}
}

Shortened: rule has all the fields shown in Create a rule.

Errors

StatusCodeWhen
404(none)"Access rule not found".
409CUSTOMER_STATEMENT_READ_ONLYA statement you wrote yourself. It can only be deleted.
409POLICY_LOCK_TIMEOUT, POLICY_LOCK_LOST, BUCKET_POLICY_CONFLICTAnother change to the bucket policy happened at the same time. Retry.

Resume a rule​

POST/buckets/{bucket}/access/{ruleId}/resume

Puts a suspended rule back into the bucket policy. It is checked again, as if it were new.

Path parameters

NameDescription
bucketThe bucket name.
ruleIdThe rule's id.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-X POST \
"https://cli.zata.ai/cli/v1/buckets/reports/access/$RULE_ID/resume"
200 OK
{
"message": "Access resumed",
"rule": {
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"status": "active"
}
}

Shortened: rule has all the fields shown in Create a rule.

Errors

StatusCodeWhen
400(none)The rule was not found or is not suspended. This endpoint answers 400, not 404.
409LOG_BUCKET_CANNOT_BE_SHAREDThe bucket now receives access logs.
409OBJECT_LOCK_OPT_IN_REQUIREDThe bucket's sub-user Object Lock setting is off.
409CUSTOMER_STATEMENT_READ_ONLYA statement you wrote yourself.

List a sub-user's buckets​

GET/subusers/{subuserId}/buckets

Lists the rules of both types that give the sub-user access, one row per bucket. Deny rules are left out unless you ask for them, and so are buckets in regions where the sub-user is suspended.

Path parameters

NameDescription
subuserIdThe sub-user's KC_id.

Query parameters

NameTypeRequiredDescription
regionstringNoOnly this region: idr01, bom01.
include_deniedstringNotrue also lists Deny rules.
sync_modestringNoblocking (default) checks your rules against the live bucket policies before answering; async checks in the background; off skips the check.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/subusers/$SUBUSER_ID/buckets?region=idr01"
200 OK
{
"grantee_id": "5f2c8a1e-0000-4000-8000-000000000001",
"region": "idr01",
"rules_count": 1,
"rules": [
{
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"bucket_name": "reports",
"bucket_region": "idr01",
"effect": "Allow",
"actions": ["s3:ListBucket", "s3:GetObject"],
"scope_type": "prefix",
"resources": ["monthly/*"],
"status": "active"
}
]
}

Shortened: each rule has the fields shown in Create a rule. Inline policy rules have "type": "inline".

Errors

StatusCodeWhen
400(none)Invalid sync_mode.
403SUBUSER_SUSPENDEDThe sub-user is suspended in every region.
404SUBUSER_NOT_FOUNDNo such sub-user, or it isn't yours.

Grant several buckets​

POST/subusers/{subuserId}/access/bulk

Creates one bucket policy rule per bucket for one sub-user, up to 20 in a call. Each share succeeds or fails on its own; the answer lists both. The sub-user gets one notification for the whole call. Here resources without scope_type makes a folder rule.

Path parameters

NameDescription
subuserIdThe sub-user's KC_id.

Body

FieldTypeRequiredDescription
sharesarray of objectsYes1 to 20 shares.
shares[].bucket_namestringYesThe bucket.
shares[].regionstringYesIts region, idr01 or bom01.
shares[].actionsarray of stringsYesAs in Create a rule.
shares[].effectstringNoAllow (default) or Deny.
shares[].scope_typestringNobucket or prefix. Inferred from resources when left out.
shares[].resourcesarray of stringsNoFolders.
shares[].conditionsobjectNoAs in Create a rule.
shares[].permission_presetstringNoLabel only.
shares[].notesstringNoA name for the rule.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST --data '{"shares": [
{"bucket_name": "reports", "region": "idr01", "actions": ["s3:ListBucket", "s3:GetObject"]},
{"bucket_name": "invoices", "region": "bom01", "actions": ["s3:ListBucket", "s3:GetObject"], "resources": ["2026/"]}
]}' \
"https://cli.zata.ai/cli/v1/subusers/$SUBUSER_ID/access/bulk"
201 Created
{
"total": 2,
"created_count": 1,
"failed_count": 1,
"created": [
{
"id": "c3a9f6d1-0000-4000-8000-000000000007",
"bucket_name": "reports",
"bucket_region": "idr01",
"scope_type": "bucket",
"resources": null,
"status": "active"
}
],
"failed": [
{
"share": {
"bucket_name": "invoices",
"bucket_region": "bom01",
"actions": ["s3:ListBucket", "s3:GetObject"],
"resources": ["2026/"],
"permission_preset": null,
"conditions": null,
"notes": null,
"grantee_type": "subuser",
"grantee_id": "5f2c8a1e-0000-4000-8000-000000000001"
},
"error": "This subuser is not in region bom01. A subuser can only be granted buckets in its own region."
}
]
}

Here the sub-user is only in idr01, so the bom01 share fails. Shortened: each created rule has the fields shown in Create a rule. A 201 can still contain failures; always check failed.

Errors

StatusCodeWhen
400(none)shares is missing, empty, longer than 20, or a share lacks bucket_name or region.
400BULK_ACCESS_FAILEDEvery share failed. The body has created and failed as above.

List all your rules​

GET/access/rules

Lists all your bucket policy rules across buckets, newest first, one page at a time. Pass next_cursor as cursor to get the next page.

Query parameters

NameTypeRequiredDescription
limitintegerNoRules per page, 1 to 100. Default 20.
cursorstringNonext_cursor from the previous page.
bucket_namestringNoOnly this bucket.
bucket_regionstringNoOnly this region. Needs bucket_name.
statusstringNoactive, suspended or expired.
qstringNoSearch in the notes, display name, bucket name, preset, actions and folders.
sync_modestringNoblocking (default), async or off. As in List a sub-user's buckets; only on the first page.
include_inlinestringNotrue also lists inline policy rules, on the first page only.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/access/rules?limit=50&sync_mode=off"
200 OK
{
"items": [
{
"id": "c3a9f6d1-0000-4000-8000-000000000003",
"bucket_name": "reports",
"bucket_region": "idr01",
"grantee_type": "subuser",
"grantee_id": "5f2c8a1e-0000-4000-8000-000000000001",
"status": "active"
}
],
"has_more": false,
"next_cursor": null,
"sync": { "skipped": true, "reason": "off" },
"filters": {
"bucket_name": null,
"bucket_region": null,
"status": null,
"q": null,
"sync_mode": "off"
}
}

Shortened: each item has the fields shown in Create a rule.

Errors

StatusCodeWhen
400(none)A bad parameter: limit, status, sync_mode, cursor, or bucket_region without bucket_name.

Get the permission catalog​

GET/access/permissions

Returns the presets, S3 actions, condition presets and resource patterns used by bucket policy rules in general. It also lists actions sub-users can't have. For the list sub-users can have, use GET /inline-policies/catalog.

curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
"https://cli.zata.ai/cli/v1/access/permissions"
200 OK

The body has four fields:

FieldContents
presetsThe permission presets, each with its actions.
actionsobject and bucket lists of actions, and dangerous (empty).
conditionsCondition presets.
resourcesResource patterns, each with id, name, description, requiresPrefix and requiresKey.

Errors: none specific to this endpoint.

Check action names​

POST/access/validate-actions

Checks a list of action names against the catalog of known S3 actions. It does not check which actions sub-users may have; creating the rule does that.

Body

FieldTypeRequiredDescription
actionsarray of stringsYesThe actions to check. Not empty.
curl --aws-sigv4 "aws:amz:us-east-1:zata" \
--user "$ZATA_ACCESS_KEY:$ZATA_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST --data '{"actions": ["s3:GetObject", "s3:GetObjectz"]}' \
"https://cli.zata.ai/cli/v1/access/validate-actions"
200 OK

The body has valid (true or false), summary, issues with the unknown and dangerous actions, warnings, and safe_actions.

Errors

StatusCodeWhen
400(none)actions is not an array, or is empty.