Authorizations
Api key
curl --request POST \
--url https://{tenant}/admin/policies/import \
--header 'Admin-Auth: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"Data": [
{
"_id": "",
"access_rights": null,
"active": true,
"date_created": "0001-01-01T00:00:00Z",
"hmac_enabled": false,
"id": "",
"is_inactive": false,
"key_expires_in": 0,
"last_updated": "1478791603",
"max_query_depth": 0,
"meta_data": null,
"name": "Default",
"org_id": "53ac07777cbb8c2d53000002",
"partitions": {
"acl": false,
"complexity": false,
"per_api": false,
"quota": false,
"rate_limit": false
},
"per": 60,
"quota_max": -1,
"quota_renewal_rate": 3600,
"rate": 1000,
"smoothing": null,
"tags": [],
"throttle_interval": 0,
"throttle_retry_limit": 0
}
],
"Pages": 0
}'
{
"Message": "Policies imported",
"Meta": {
"61df10078f11dd00097cb55f": true
},
"Status": "OK"
}
The import Policies operates on lists of Policies.
curl --request POST \
--url https://{tenant}/admin/policies/import \
--header 'Admin-Auth: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"Data": [
{
"_id": "",
"access_rights": null,
"active": true,
"date_created": "0001-01-01T00:00:00Z",
"hmac_enabled": false,
"id": "",
"is_inactive": false,
"key_expires_in": 0,
"last_updated": "1478791603",
"max_query_depth": 0,
"meta_data": null,
"name": "Default",
"org_id": "53ac07777cbb8c2d53000002",
"partitions": {
"acl": false,
"complexity": false,
"per_api": false,
"quota": false,
"rate_limit": false
},
"per": 60,
"quota_max": -1,
"quota_renewal_rate": 3600,
"rate": 1000,
"smoothing": null,
"tags": [],
"throttle_interval": 0,
"throttle_retry_limit": 0
}
],
"Pages": 0
}'
{
"Message": "Policies imported",
"Meta": {
"61df10078f11dd00097cb55f": true
},
"Status": "OK"
}
Api key
Was this page helpful?