Returns a policy export document for the selected policy IDs. Requires administrator or delegated-admin access and the eng-lc-sub-users feature flag. The document is a strict subset of the sub-user policy request payload — a consumer adds only connector_display_name before submitting it to the OAuth authorize endpoint.
Security
ApiKeyAuth
- https://api.treasuredata.com/v3https://api.treasuredata.com/v3/access_control/policies/export
- https://api.treasuredata.co.jp/v3https://api.treasuredata.co.jp/v3/access_control/policies/export
- https://api.ap02.treasuredata.com/v3https://api.ap02.treasuredata.com/v3/access_control/policies/export
- https://api.eu01.treasuredata.com/v3https://api.eu01.treasuredata.com/v3/access_control/policies/export
curl -i -X GET \
'https://api.treasuredata.com/v3/access_control/policies/export?policy_ids=101%2C205' \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>'OK
Document version. Opaque to callers; only the policy request parser reads it.
Value:1
Example:1
Deployment site identifier (e.g. aws, eu01, ap02, ap03, aws-tokyo). Omitted when the deployment cannot determine the site.
Example:"aws"
Deployment stage. Omitted when the deployment cannot determine the stage. The vocabulary is PolicyRequestPayload::ALLOWED_STAGES; a deployment outside it cannot export.
Enum:"development""staging""production"
Example:"production"
Response
{ "version": 1, "site": "aws", "stage": "production", "account_id": 12345, "policy_ids": [ 101, 205 ] }