Update Proposed Security Policy
Updates a proposed security policy. Writable fields are publish_action, display_name, and description. The request body must include the current revision value for optimistic concurrency control.
Notes
- Publish preconditions: PUBLISH is a no-op if the policy is already published successfully or
- if publication is already in progress. All groups referenced by the policy's rules must be
- published before PUBLISH is accepted. CANCEL_PUBLISH attempts to cancel any ongoing
- publication; if no publication is in progress, it is a no-op.
- Returns 202 on success
Unique identifier of the segmentation session.
Unique identifier of the proposed security policy.
Security policy update. Only publish_action, display_name, and description are writable; all other fields are ignored. The revision field is required for optimistic concurrency control. The policy_type field must be included as the discriminator to identify the concrete schema but cannot be changed.
{
"revision": 2,
"policy_type": "ENVIRONMENT",
"publish_action": "PUBLISH",
"display_name": "SSP_US_AZ1_Dev"
}
Update accepted and processing asynchronously
{
"id": "250f9f29-d983-3bab-9ed1-1bc61c21010a",
"status_url": "/segmentation/aa68674c-f114-43fc-9ee0-ec6d9cf81d01/results/proposed-security-policies/250f9f29-d983-3bab-9ed1-1bc61c21010a/status"
}
UUID identifier of the response.
The URL to check the status of the operation.
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unexpected error
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"policy_type":"string"}' https://{api_host}/ssp/segmentation/{session-id}/results/proposed-security-policies/{policy-id}