Publish Environment Pair Config
Initiate an asynchronous DFW policy publish job for a specific environment pair.
The {pair-id} is the underscore-separated concatenation of source and destination environment UUIDs
(e.g. src-env-uuid_dst-env-uuid). Obtain it from the pair_id field in POST /monitoring/environments/pair-summary results.
Supported action types:
POLICY_WITH_PROTECTION_RULE_CREATE: Create a new DFW security policy with an embedded protection rule scoped to the source and destination environment groups.PROTECTION_RULE_UPDATE: Update the action of an existing protection rule in an environment policy.
Polling for completion:
The 202 response includes a job_id. Poll GET /monitoring/environment-pairs/{pair-id}/publish-config/{job-id}
until status is COMPLETED or FAILED. The status_url in the response points directly to that endpoint.
Side effects: POLICY_WITH_PROTECTION_RULE_CREATE writes a new DFW security policy to NSX Manager
and triggers NSX realization. Do not call this endpoint in a polling loop.
Returns 409 Conflict if a publish job for this environment pair is already in progress.
Environment pair identifier (underscore-separated concatenation of source and destination environment UUIDs).
Obtain from the pair_id field in POST /monitoring/environments/pair-summary results.
6c0a5b3c-6b9f-4d1e-afaf-ed3fb42bd57e_8ad292bc-e09b-49de-b011-03d9beab1a2a
Site ID and ordered list of publish actions to execute for the environment pair
Show optional properties
{
"site_id": "77366441-9e69-47d1-9bbb-8c608f27f158",
"publish_actions": [
{
"action_type": "POLICY_WITH_PROTECTION_RULE_CREATE",
"protection_rule_action": "JUMP_TO_APPLICATION",
"display_name": "Shared to Development Policy"
},
{
"action_type": "PROTECTION_RULE_UPDATE",
"rule_path": "/infra/domains/default/security-policies/Policy-abc/rules/Rule-xyz",
"rule_action": "JUMP_TO_APPLICATION"
}
]
}
{
"site_id": "5cf83f93-f9dd-4898-a345-44513572c557",
"publish_actions": [
{
"action_type": "POLICY_WITH_PROTECTION_RULE_CREATE",
"protection_rule_action": "JUMP_TO_APPLICATION",
"display_name": "US_West_debug - LTN_West_debug Inter-Environment Policy"
}
]
}
Unique identifier of the site where all publish actions will be executed.
Ordered list of publish actions to execute. Each entry targets one resource.
- POLICY_WITH_PROTECTION_RULE_CREATE: One entry per new security policy to create.
- PROTECTION_RULE_UPDATE: One entry per existing protection rule to update.
Accepted. An asynchronous publish job has been created.
{
"id": "6012d743-ee88-4f05-9f09-1db8abe47678",
"status_url": "/intelligence/monitoring/environment-pairs/6c0a5b3c-6b9f-4d1e-afaf-ed3fb42bd57e_8ad292bc-e09b-49de-b011-03d9beab1a2a/publish-config/6012d743-ee88-4f05-9f09-1db8abe47678"
}
UUID identifier of the response.
The URL to check the status of the operation.
Bad Request. The request body failed validation (e.g. empty publish_actions, invalid paths).
{
"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.
Conflict. A publish job for this environment pair is already in progress.
{
"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.
Error
"Error Object"
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"site_id":"string","publish_actions":["object"]}' https://{api_host}/intelligence/monitoring/environment-pairs/{pair-id}/publish-config