Delete a policy¶
DELETE /api/v1/delete-policy/{name}
Deletes a MaaSAuthPolicy resource by name. K8s calls: DELETE /k8s/v1/maasauthpolicy/:name
Authorization¶
Parameters¶
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Name of the MaaSAuthPolicy to delete |
Responses¶
| Status | Description | Response body |
|---|---|---|
200 OK | Policy deleted successfully | object
|
401 Unauthorized | Unauthorized | None |
404 Not Found | Policy not found |
|
500 Internal Server Error | Internal Server Error |
|
200 OK response body
| Property | Type | Required | Description |
|---|---|---|---|
message | string | No | Success message |
Example request¶
Example response¶
200 OK, application/json