Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added swagger spec for Microsoft.DynamicsTelemetry preview #5161

Merged
merged 9 commits into from
Apr 25, 2019
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"swagger": "2.0",
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"info": {
"title": "Dynamics Telemetry",
"version": "2019-01-24"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"paths": {
"/providers/Microsoft.DynamicsTelemetry/operations": {
"get": {
"tags": [
"Operations"
],
"operationId": "Operations_List",
"produces": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consumes?

Copy link
Contributor Author

@v-ilseka v-ilseka Apr 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consumes?

If you mean - does the Operations action consumes some parameters - then no.
Otherwise please clarify your question.

Kind regards.

"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationList"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a pageable operation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a pageable operation?

No

}
},
"204": {
"description": "No Content"
}
},
"x-ms-examples": {
"List Operations": {
"$ref": "./examples/Operations_List.json"
}
}
}
}
},
"definitions": {
"OperationList": {
"type": "array",
"description": "List of supported operations.",
"items": {
"$ref": "#/definitions/Operation"
}
},
"Operation": {
"type": "object",
"additionalProperties": false,
"required": [
"isDataAction"
],
"properties": {
"origin": {
"type": "string"
},
"name": {
"type": "string"
},
"display": {
"$ref": "#/definitions/Display"
},
"properties": {
"$ref": "#/definitions/Properties"
},
"isDataAction": {
v-ilseka marked this conversation as resolved.
Show resolved Hide resolved
"type": "boolean"
}
}
},
"Display": {
"type": "object",
"additionalProperties": false,
"properties": {
"provider": {
"type": "string"
},
"resource": {
"type": "string"
},
"operation": {
"type": "string"
},
"description": {
"type": "string"
},
"publisher": {
"type": "string"
}
}
},
"Properties": {
"type": "object",
"additionalProperties": false,
"properties": {
"serviceSpecification": {
"$ref": "#/definitions/ServiceSpecification"
}
}
},
"ServiceSpecification": {
"type": "object",
"additionalProperties": false,
"properties": {
"logSpecifications": {
"type": "array",
"items": {
"$ref": "#/definitions/LogSpecification"
}
}
}
},
"LogSpecification": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"displayName": {
"type": "string"
},
"blobDuration": {
"type": "string",
"format": "duration"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"parameters": {
"api-version": "2019-01-24"
},
"responses": {
"200": {
"body": [{
"origin": "system",
"name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/logDefinitions/read",
"display": {
"provider": "Microsoft Dynamics Telemetry",
"resource": "Log definition",
"operation": "Read tenants log definitions",
"description": "Gets the available logs for tenants"
},
"properties": {},
"isDataAction": false
},
{
"origin": "system",
"name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/diagnosticSettings/read",
"display": {
"provider": "Microsoft Dynamics Telemetry",
"resource": "tenants",
"operation": "Read diagnostic setting",
"description": "Gets the diagnostic setting for the resource"
},
"isDataAction": false
},
{
"origin": "system",
"name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/diagnosticSettings/write",
"display": {
"provider": "Microsoft Dynamics Telemetry",
"resource": "tenants",
"operation": "Write diagnostic setting",
"description": "Creates or updates the diagnostic setting for the resource"
},
"isDataAction": false
},
{
"name": "microsoft.dynamicstelemetry/diagnosticsettings/write",
"display": {
"provider": "Microsoft Monitoring Insights",
"resource": "Diagnostic settings",
"operation": "Diagnostic settings write",
"description": "Writing a diagnostic setting",
"publisher": "Microsoft"
},
"properties": {},
"isDataAction": false
},
{
"name": "microsoft.dynamicstelemetry/diagnosticsettings/read",
"display": {
"provider": "Microsoft Monitoring Insights",
"resource": "Diagnostic settings",
"operation": "Diagnostic settings read",
"description": "Reading a diagnostic setting",
"publisher": "Microsoft"
},
"properties": {},
"isDataAction": false
},
{
"name": "microsoft.dynamicstelemetry/diagnosticsettings/delete",
"display": {
"provider": "Microsoft Monitoring Insights",
"resource": "Diagnostic settings",
"operation": "Diagnostic settings delete",
"description": "Deleting a diagnostic setting",
"publisher": "Microsoft"
},
"properties": {},
"isDataAction": false
},
{
"name": "microsoft.dynamicstelemetry/diagnosticsettingscategories/read",
"display": {
"provider": "Microsoft Monitoring Insights",
"resource": "Diagnostic settings categories",
"operation": "Diagnostic settings categories read",
"description": "Reading a diagnostic setting categories",
"publisher": "Microsoft"
},
"properties": {},
"isDataAction": false
}
]

},
"204": {
}
}
}