Skip to content

Create an Access Control Policy Group

Request

Creates a policy group.

Security
ApiKeyAuth
Bodyapplication/json
namestring(name)required

Policy Group's name

Example:"some_policy_group"
curl -i -X POST \
  https://api.treasuredata.com/v3/access_control/policy_groups \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "some_policy_group"
  }'

Responses

OK

Bodyapplication/json
idinteger(AccessControlPolicyGroupId)
Example:10
account_idinteger(AccountId)
Example:123
namestringrequired

Policy Group's name

Example:"some_policy_group"
taggable_namestring(AccessControlPolicyGroupTaggableName)

Policy Group's taggable name

Example:"some_policy_group"
descriptionstring or null

Policy Group's description

Example:"some_policy_group_description"
policy_countinteger

Policy Group's policy count

Example:1
created_atstring, (date-time)

when the policy group was created

Example:"2012-01-01T12:00:00Z"
updated_atstring, (date-time)

when policy group was updated

Example:"2012-01-01T12:00:00Z"
Response
{ "id": 10, "account_id": 123, "name": "some_policy_group", "taggable_name": "some_policy_group", "description": "some_policy_group_description", "policy_count": 1, "created_at": "2012-01-01T12:00:00Z", "updated_at": "2012-01-01T12:00:00Z" }