Protect a resource¶
Method¶
POST https://papi.afi.ai/api/v1/tenants/{tenant_id}/resources/{resource_id}/protect
Description¶
Assigns given policy to the resource. No more than one policy can be assigned to the resource by default.
Path params¶
tenant_id
string
required
Tenant where the resource belongs to. |
resource_id
string
required
ID of the resource to protect. External ID can NOT be used here. |
Query params¶
policy_id
string
required
Policy ID to assign to the resource. |
curl -X POST \
-H 'Authorization: {api-key}' \
https://papi.afi.ai/api/v1/tenants/{tenant_id}/resources/{resource_id}/protect?policy_id={value}
Successful response (200) schema¶
object |
job_id
string
Job ID corresponding to the protection. |