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

adding new api version 2021-05-01-preview #14485

Merged
merged 21 commits into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
{
"swagger": "2.0",
"info": {
"title": "MonitorManagementClient",
"x-ms-code-generation-settings": {
"name": "MonitorManagementClient"
},
"version": "2021-05-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"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"
}
}
},
"paths": {
"/{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories/{name}": {
"get": {
LarryZhang19 marked this conversation as resolved.
Show resolved Hide resolved
"tags": [
"DiagnosticSettingsCategories"
],
"operationId": "DiagnosticSettingsCategory_Get",
"description": "Gets the diagnostic settings category for the specified resource.",
"parameters": [
{
"$ref": "#/parameters/ResourceUriParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/NameParameter"
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful request to get more information about diagnostic setting category",
"schema": {
"$ref": "#/definitions/DiagnosticSettingsCategoryResource"
}
}
},
"x-ms-examples": {
"Gets the diagnostic setting": {
"$ref": "./examples/getDiagnosticSettingsCategory.json"
}
}
}
},
"/{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories": {
"get": {
"tags": [
"DiagnosticSettingsCategories"
],
"operationId": "DiagnosticSettingsCategory_List",
"description": "Lists the diagnostic settings categories for the specified resource.",
"parameters": [
{
"$ref": "#/parameters/ResourceUriParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful request to get more information about diagnostic setting category",
"schema": {
"$ref": "#/definitions/DiagnosticSettingsCategoryResourceCollection"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"Gets the diagnostic setting": {
"$ref": "./examples/listDiagnosticSettingsCategories.json"
}
}
}
}
},
"definitions": {
"ProxyOnlyResource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"readOnly": true,
"description": "Azure resource name"
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
}
},
"x-ms-azure-resource": true,
"description": "A proxy only azure resource object"
},
"DiagnosticSettingsCategory": {
LarryZhang19 marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"categoryType": {
"enum": [
"Metrics",
"Logs"
],
"type": "string",
"x-ms-enum": {
"name": "categoryType"
LarryZhang19 marked this conversation as resolved.
Show resolved Hide resolved
},
"x-nullable": false,
"description": "The type of the diagnostic settings category."
},
"categoryGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/CategoryGroup"
},
"description": "the collection of category groups the category belongs to."
},
"description": "The diagnostic settings Category."
},
"DiagnosticSettingsCategoryResource": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/DiagnosticSettingsCategory",
"description": "The properties of a Diagnostic Settings Category."
}
},
"description": "The diagnostic settings category resource."
},
"DiagnosticSettingsCategoryResourceCollection": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/DiagnosticSettingsCategoryResource"
},
"description": "The collection of diagnostic settings category resources."
}
},
"description": "Represents a collection of diagnostic setting category resources."
},
"CategoryGroup": {
"type": "string",
"description": "the category group of the log category."
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
}
},
"parameters": {
"ResourceUriParameter": {
"name": "resourceUri",
"in": "path",
"required": true,
"type": "string",
"description": "The identifier of the resource.",
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
},
"NameParameter": {
"name": "name",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the diagnostic setting.",
"x-ms-parameter-location": "method"
}
}
}
LarryZhang19 marked this conversation as resolved.
Show resolved Hide resolved
Loading