diff --git a/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/ValidateLinkSuccess.json b/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/ValidateLinkSuccess.json index 066cb295ec0c..5704a4b9f312 100644 --- a/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/ValidateLinkSuccess.json +++ b/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/ValidateLinkSuccess.json @@ -7,25 +7,27 @@ "responses": { "200": { "body": { - "linkerName": "linkName", - "isConnectionAvailable": true, - "reportStartTimeUtc": "2020-07-12T22:05:09Z", - "reportEndTimeUtc": "2020-07-12T22:06:09Z", - "sourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", - "targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", - "authType": "secret", - "validationDetail": [ - { - "name": "TargetExistence", - "description": "The target existence is validated", - "result": "success" - }, - { - "name": "TargetNetworkAccess", - "description": "Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.", - "result": "warning" - } - ] + "properties": { + "linkerName": "linkName", + "isConnectionAvailable": true, + "reportStartTimeUtc": "2020-07-12T22:05:09Z", + "reportEndTimeUtc": "2020-07-12T22:06:09Z", + "sourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", + "targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db", + "authType": "secret", + "validationDetail": [ + { + "name": "TargetExistence", + "description": "The target existence is validated", + "result": "success" + }, + { + "name": "TargetNetworkAccess", + "description": "Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.", + "result": "warning" + } + ] + } } }, "202": {} diff --git a/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json b/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json index 6984cc7303e6..0a4696c5ac4d 100644 --- a/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json +++ b/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json @@ -297,7 +297,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ValidateResult" + "$ref": "#/definitions/ValidateOperationResult" } }, "202": { @@ -863,6 +863,25 @@ } } }, + "ValidateOperationResult": { + "description": "The validation operation result for a linker.", + "type": "object", + "properties": { + "properties": { + "description": "The validation result detail.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ValidateResult" + }, + "resourceId": { + "description": "Validated linker id.", + "type": "string" + }, + "status": { + "description": "Validation operation status.", + "type": "string" + } + } + }, "ValidateResult": { "description": "The validation result for a linker.", "type": "object", @@ -926,7 +945,7 @@ "type": "string", "enum": [ "success", - "failed", + "failure", "warning" ], "x-ms-enum": {