注册服务需要进行 API 调用。注册服务后,可以在 NSX Manager UI 中进行查看。

有关 API 调用和输入参数的详细信息,请参见《NSX-T Data Center API 参考》

过程

  1. 执行以下 API 调用,以注册服务:
    POST /api/v1/serviceinsertion/services
    例如,
    POST https://<nsx-mgr>/api/v1/serviceinsertion/services
    {
      "display_name": "NS Service for ABC partner",
      "description": "This service is inserted at T0 router and it provides advanced security",
      "attachment_point": [
        "TIER0_LR"
      ],
      "functionalities": [
        "NG_FW"
      ],
      "implementations": [
        "NORTH_SOUTH"
      ],
      "transports": [
        "L2_BRIDGE"
      ],
      "vendor_id": "ABC_Partner",
      "on_failure_policy": "ALLOW",
      "service_deployment_spec": {
        "deployment_specs": [{
          "ovf_url": "http://server.com/dir1/ABC-Company-HA-OVF/ABC-VM-ESX-2.0.ovf",
          "name": "NS_DepSpec",
          "host_type": "ESXI",
          "service_form_factor": "MEDIUM"
        }],
        "nic_metadata_list": [
        {
            "interface_label": "eth",
            "interface_index": 0,
            "interface_type": "MANAGEMENT"
          },
          {
            "interface_label": "eth",
            "interface_index": 1,
            "interface_type": "DATA1"
          },
          {
            "interface_label": "eth",
            "interface_index": 2,
            "interface_type": "DATA2"
          }
        ],
        "deployment_template": [{
          "name": "NS_DepTemp",
          "attributes": [{
            "attribute_type": "STRING",
            "display_name": "License",
            "key": "LicenseKey"
          }]
        }]
      }
    }
  2. 从浏览器中,使用管理员权特权登录到位于 https://nsx-manager-ip-addressNSX Manager
  3. 从导航面板中选择合作伙伴服务
  4. 单击目录选项卡,并确保已注册服务。

后续步骤

部署服务的实例。请参见部署服务实例