Skip to content

Delete a policy

DELETE /api/v1/delete-policy/{name}

DELETE /maas/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

application/json

401 Unauthorized

Unauthorized

None
404 Not Found

Policy not found

ErrorResponse

application/json

500 Internal Server Error

Internal Server Error

ErrorResponse

application/json

200 OK response body

Property Type Required Description
message string No

Success message

Example request

curl -X DELETE "/maas/api/v1/delete-policy/{name}" \
  -H "Authorization: Bearer $TOKEN"

Example response

200 OK, application/json

{
  "message": "MaaSAuthPolicy 'team-alpha-policy' deleted successfully"
}