Update Proposed Security Policy Rule
Updates a rule within a proposed security policy. Writable fields are display_name, description, action, and disabled. The request body must include the current revision value for optimistic concurrency control.
Notes
- Only rules whose proposed_sync_action is CREATE or OVERWRITE are writable; attempting to update a rule with REORDER, SKIP, or DELETE returns an error.
- The request body must include the current revision value for optimistic concurrency control.
- Returns 200 on success
Unique identifier of the segmentation session.
Unique identifier of the proposed security policy.
Unique identifier of the rule.
Rule update. Only display_name, description, action, and disabled are writable; all other fields are ignored. The revision field is required for optimistic concurrency control.
{
"_revision": 0,
"display_name": "SSP_US_AZ1_Prod_NTP",
"action": "DROP",
"disabled": false
}
Successfully updated rule
{
"id": "SSP_Infra_NTP_Rule_6bf9a09f-cb7c-37bd-9d6b-72af7cb5c40c",
"display_name": "SSP_US_AZ1_Prod_NTP",
"description": "SSP created rule for NTP for SSP_Infra_US_AZ1_Prod_environment_NTP",
"_revision": 0,
"action": "DROP",
"disabled": false,
"proposed_sync_action": "OVERWRITE",
"nsx_rule": {
"resource_type": "Rule",
"id": "SSP_Infra_NTP_Rule_6bf9a09f-cb7c-37bd-9d6b-72af7cb5c40c",
"path": "/infra/domains/default/security-policies/SSP_Infra_Policy/rules/SSP_Infra_NTP_Rule_6bf9a09f-cb7c-37bd-9d6b-72af7cb5c40c",
"display_name": "SSP_US_AZ1_Prod_NTP",
"description": "SSP created rule for NTP for SSP_Infra_US_AZ1_Prod_environment_NTP",
"sequence_number": 1500,
"direction": "IN_OUT",
"source_groups": [
"/infra/domains/default/groups/5e2be46d-2cd7-350b-82da-09af3ba0c86f"
],
"destination_groups": [
"/infra/domains/default/groups/6bf9a09f-cb7c-37bd-9d6b-72af7cb5c40c"
],
"action": "DROP",
"services": [
"/infra/services/NTP"
]
}
}
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 '{}' https://{api_host}/ssp/segmentation/{session-id}/results/proposed-security-policies/{policy-id}/rules/{rule-id}