POST https://{{NSX Manager-IP}}/policy/api/v1/enforcement-points/default/service-definitions
示例请求:
{
"resource_type":"ServiceDefinition",
"description":"NS-Service",
"display_name":"Service_Appliance1",
"attachment_point":[
"TIER0_LR"
],
"transports":[
"L3_ROUTED"
],
"functionalities":[
"NG_FW", "BYOD"
],
"on_failure_policy":"ALLOW",
"implementations":[
"NORTH_SOUTH"
],
"vendor_id" : "Vendor1"
}
示例响应:
{
"resource_type": "ServiceDefinition",
"description": "NS-Service",
"id": "33890153-6eea-4c9d-8e34-7b6532b9d65c",
"display_name": "Service_Appliance1",
"attachment_point": [
"TIER0_LR"
],
"transports": [
"L3_ROUTED"
],
"functionalities": [
"NG_FW", "BYOD"
],
"vendor_id": "Vendor1",
"on_failure_policy": "ALLOW",
"implementations": [
"NORTH_SOUTH"
],
"_create_time": 1540424262137,
"_last_modified_user": "nsx_policy",
"_system_owned": false,
"_protection": "REQUIRE_OVERRIDE",
"_last_modified_time": 1540424262137,
"_create_user": "nsx_policy",
"_revision": 0
}