diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/ADHybridHealthService.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/ADHybridHealthService.json index 41527760bf48..02abe18a82ea 100644 --- a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/ADHybridHealthService.json +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/ADHybridHealthService.json @@ -3276,7 +3276,7 @@ "description": "The name of the service.", "required": true, "type": "string" - }, + }, { "$ref": "#/parameters/apiVersionParameter" } @@ -3311,7 +3311,7 @@ "description": "The name of the service.", "required": true, "type": "string" - }, + }, { "$ref": "#/parameters/apiVersionParameter" } @@ -3328,6 +3328,55 @@ "nextLinkName": null } } + }, + "/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}": + { + "get": { + "tags": ["Metrics"], + "description": "Gets the list of connectors and run profile names.", + "x-ms-examples": { + "serviceMembers_getConnectorMetadata": { + "$ref": "./examples/ConnectorMetadata.json" + } + }, + "operationId": "serviceMembers_getConnectorMetadata", + "parameters": [ + { + "name": "serviceName", + "in": "path", + "description": "The name of the service.", + "required": true, + "type": "string" + }, + { + "name": "serviceMemberId", + "in": "path", + "description": "The service member id.", + "required": true, + "type": "string", + "format": "uuid" + }, + { + "name": "metricName", + "in": "path", + "description": "The name of the metric.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": + "Gets the list of connectors and run profile names for the given service and service member.", + "schema": { + "$ref": "#/definitions/ConnectorMetadata" + } + } + } + } } }, "definitions": { @@ -4237,6 +4286,40 @@ } } }, + "ConnectorMetadata": { + "description": "Gets the list of connectors and run profile names.", + "type": "object", + "properties": { + "connectors": { + "description": "The list of connectors.", + "type": "array", + "items": { + "$ref": "#/definitions/ConnectorMetadataDetails" + } + }, + "runProfileNames": { + "description": "The list of run profile names.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ConnectorMetadataDetails": { + "description": "Details of the connector.", + "type": "object", + "properties": { + "connectorId": { + "description": "The Connector Id.", + "type": "string" + }, + "connectorDisplayName": { + "description": "The Connector Display Name", + "type": "string" + } + } + }, "ConnectorObjectError": { "description": "The connector object error.", "type": "object", @@ -6458,29 +6541,29 @@ } } }, - "parameters": { - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "The version of the API to be used with the client request.", - "required": true, - "type": "string" - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "description": "Azure Active Directory OAuth2 Flow.", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The version of the API to be used with the client request.", + "required": true, + "type": "string" } - } - }, - "security": [ - { - "azure_auth": [ "user_impersonation" ] - } - ] -} + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ "user_impersonation" ] + } + ] + } diff --git a/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json new file mode 100644 index 000000000000..6fb9cea020b2 --- /dev/null +++ b/specification/adhybridhealthservice/resource-manager/Microsoft.ADHybridHealthService/stable/2014-01-01/examples/ConnectorMetadata.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "serviceName": "sampleServiceName", + "serviceMemberId": "SampleServiceMemberId", + "api-version": "2014-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "connectors": [ + { + "connectorId": "3efbb72d-5047-4816-a7dd-73fefe16a2f3", + "connectorDisplayName": "adhsdfus1runner.adhs.com" + }, + { + "connectorId": "b891884f-051e-4a83-95af-2544101c9083", + "connectorDisplayName": "dfadhybridhealth.dfdomain.net - AAD" + } + ], + "runProfileNames": [ + "Export", + "ApplyRules", + "DeltaImport" + ] + } + ] + } + } + } +} \ No newline at end of file