From 4f05ef288fc99c8653dbf2eb7c1c2ea12cf35be1 Mon Sep 17 00:00:00 2001 From: James Dickson Date: Tue, 10 Oct 2023 22:23:44 -0400 Subject: [PATCH] reooming for network servers, zoneId is required --- .../examples/networkServerCreateNSX.json | 3 +- components/schemas/networkServer.yaml | 35 +++++++++++++++++++ .../schemas/networkServerCreateNSX.yaml | 7 +++- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/components/examples/networkServerCreateNSX.json b/components/examples/networkServerCreateNSX.json index 8cf9ee22..1f31e7bc 100644 --- a/components/examples/networkServerCreateNSX.json +++ b/components/examples/networkServerCreateNSX.json @@ -4,6 +4,7 @@ "name": "Labs NSX", "serviceUrl": "https://nsxt-server", "serviceUsername": "username", - "servicePassword": "password" + "servicePassword": "password", + "zoneId": 121 } } \ No newline at end of file diff --git a/components/schemas/networkServer.yaml b/components/schemas/networkServer.yaml index c5304052..f80082af 100644 --- a/components/schemas/networkServer.yaml +++ b/components/schemas/networkServer.yaml @@ -31,6 +31,21 @@ properties: format: int64 name: type: string + type: + type: string + description: Integration Type Code + integrationType: + type: object + description: Integration Type + properties: + id: + type: integer + format: int64 + code: + type: string + name: + type: string + nullable: true nullable: true account: type: object @@ -112,6 +127,21 @@ properties: type: string format: date-time nullable: true + lastSync: + type: string + format: date-time + description: Last Sync Date + nullable: true + nextRunDate: + type: string + format: date-time + description: Next Run Date + nullable: true + lastSyncDuration: + type: integer + format: int64 + description: Last Sync Duration in milliseconds + nullable: true config: type: object description: Config object varies with network server type. @@ -123,6 +153,11 @@ properties: type: string description: Tenant Match nullable: true + zoneId: + type: integer + format: int64 + description: Cloud ID + nullable: true dateCreated: type: string format: date-time diff --git a/components/schemas/networkServerCreateNSX.yaml b/components/schemas/networkServerCreateNSX.yaml index 4ccf89f3..84befac8 100644 --- a/components/schemas/networkServerCreateNSX.yaml +++ b/components/schemas/networkServerCreateNSX.yaml @@ -6,6 +6,7 @@ required: - serviceUrl - serviceUsername - servicePassword + - zoneId properties: type: type: string @@ -38,4 +39,8 @@ properties: default: private enum: - public - - private \ No newline at end of file + - private + zoneId: + type: integer + format: int64 + description: ID of the Cloud that the NSX network server integration should be attached to. \ No newline at end of file