openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 17.1 kB
JSON
{"openapi":"3.0.0","info":{"description":"Azure Log Analytics API reference for Query Packs management.","title":"Azure Log Analytics Query Packs","version":"2019-09-01-preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2019-09-01-preview/QueryPacks_API.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"applicationinsights-QueryPacks_API","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/microsoft.insights/queryPacks":{"get":{"description":"Gets a list of all Log Analytics QueryPacks within a subscription.","operationId":"QueryPacks_List","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPacksList.json":{"value":"2019-09-01-preview"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPacksList.json":{"value":"86dc51d3-92ed-4d7e-947a-775ea79b4919"}}}],"responses":{"200":{"description":"A list containing 0 or more Log Analytics QueryPack definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogAnalyticsQueryPackListResult"},"examples":{"QueryPacksList.json":{"$ref":"#/components/examples/QueryPacksList.json"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/queryPacks":{"get":{"description":"Gets a list of Log Analytics QueryPacks within a resource group.","operationId":"QueryPacks_ListByResourceGroup","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"QueryPackListByResourceGroup":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackListByResourceGroup":{"value":"2019-09-01-preview"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackListByResourceGroup":{"value":"86dc51d3-92ed-4d7e-947a-775ea79b4919"}}}],"responses":{"200":{"description":"A list containing 0 or more Log Analytics QueryPack definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogAnalyticsQueryPackListResult"},"examples":{"QueryPackListByResourceGroup":{"$ref":"#/components/examples/QueryPackListByResourceGroup"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/queryPacks/{queryPackName}":{"delete":{"description":"Deletes a Log Analytics QueryPack.","operationId":"QueryPacks_Delete","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"QueryPacksDelete":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPacksDelete":{"value":"2019-09-01-preview"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPacksDelete":{"value":"86dc51d3-92ed-4d7e-947a-775ea79b4919"}}},{"$ref":"#/components/parameters/ResourceNameParameter"}],"responses":{"200":{"description":"Successful request when deleting a Log Analytics QueryPack."},"204":{"description":"The specified QueryPack does not exist."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"description":"Returns a Log Analytics QueryPack.","operationId":"QueryPacks_Get","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"QueryPackGet":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackGet":{"value":"2019-09-01-preview"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackGet":{"value":"86dc51d3-92ed-4d7e-947a-775ea79b4919"}}},{"$ref":"#/components/parameters/ResourceNameParameter"}],"responses":{"200":{"description":"An Log Analytics QueryPack definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogAnalyticsQueryPack"},"examples":{"QueryPackGet":{"$ref":"#/components/examples/QueryPackGet"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"description":"Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.","operationId":"QueryPacks_UpdateTags","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"QueryPackUpdateTagsOnly":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackUpdateTagsOnly":{"value":"2019-09-01-preview"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackUpdateTagsOnly":{"value":"subid"}}},{"$ref":"#/components/parameters/ResourceNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagsResource"}}},"description":"Updated tag information to set into the QueryPack instance.","required":true},"responses":{"200":{"description":"Updating the Log Analytics QueryPack's tags was successful. QueryPack tags are updated and returned with the rest of the QueryPack's object properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogAnalyticsQueryPack"},"examples":{"QueryPackUpdateTagsOnly":{"$ref":"#/components/examples/QueryPackUpdateTagsOnly"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"description":"Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.","operationId":"QueryPacks_CreateOrUpdate","parameters":[{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"QueryPackCreate":{"value":"my-resource-group"},"QueryPackUpdate":{"value":"my-resource-group"}}},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackCreate":{"value":"2019-09-01-preview"},"QueryPackUpdate":{"value":"2019-09-01-preview"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"QueryPackCreate":{"value":"86dc51d3-92ed-4d7e-947a-775ea79b4919"},"QueryPackUpdate":{"value":"86dc51d3-92ed-4d7e-947a-775ea79b4919"}}},{"$ref":"#/components/parameters/ResourceNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogAnalyticsQueryPack"}}},"description":"Properties that need to be specified to create or update a Log Analytics QueryPack.","required":true},"responses":{"200":{"description":"Successful request when creating or updating a Log Analytics QueryPack. The updated QueryPack is returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogAnalyticsQueryPack"},"examples":{"QueryPackCreate":{"$ref":"#/components/examples/QueryPackCreate"},"QueryPackUpdate":{"$ref":"#/components/examples/QueryPackUpdate"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"QueryPacksList.json":{"value":{"value":[{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack","location":"South Central US","name":"my-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"d1c8fc00-2b68-441e-8f9b-ded8748dc6aa","timeCreated":"2019-08-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{},"type":"microsoft.insights/querypacks"},{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-other-resource-group/providers/microsoft.insights/queryPacks/my-other-querypack","location":"South Central US","name":"my-other-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"aac8fc00-2b68-441e-8f9b-ded8748dc635","timeCreated":"2019-06-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{},"type":"microsoft.insights/querypacks"}]}},"QueryPackListByResourceGroup":{"value":{"value":[{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack","location":"South Central US","name":"my-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"d1c8fc00-2b68-441e-8f9b-ded8748dc6aa","timeCreated":"2019-08-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{},"type":"microsoft.insights/querypacks"},{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-other-querypack","location":"South Central US","name":"my-other-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"aac8fc00-2b68-441e-8f9b-ded8748dc635","timeCreated":"2019-06-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{},"type":"microsoft.insights/querypacks"}]}},"QueryPackGet":{"value":{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack","location":"southcentralus","name":"my-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"d1c8fc00-2b68-441e-8f9b-ded8748dc635","timeCreated":"2019-08-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{},"type":"microsoft.insights/querypacks"}},"QueryPackUpdateTagsOnly":{"value":{"id":"/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack","location":"South Central US","name":"my-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"aac8fc00-2b68-441e-8f9b-ded8748dc635","timeCreated":"2019-06-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{"Tag1":"Value1","Tag2":"Value2"},"type":"microsoft.insights/querypacks"}},"QueryPackCreate":{"value":{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack","location":"South Central US","name":"my-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"d1c8fc00-2b68-441e-8f9b-ded8748dc635","timeCreated":"2019-08-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{},"type":"microsoft.insights/querypacks"}},"QueryPackUpdate":{"value":{"id":"/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/queryPacks/my-querypack","location":"South Central US","name":"my-querypack","properties":{"provisioningState":"Succeeded","queryPackId":"aac8fc00-2b68-441e-8f9b-ded8748dc635","timeCreated":"2019-06-04T12:37:56.8543652Z","timeModified":"2019-08-04T12:37:56.8543652Z"},"tags":{"Tag1":"Value1"},"type":"microsoft.insights/querypacks"}}},"parameters":{"ResourceNameParameter":{"description":"The name of the Log Analytics QueryPack resource.","in":"path","name":"queryPackName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"QueryPacksDelete":{"value":"my-querypack"},"QueryPackGet":{"value":"my-querypack"},"QueryPackUpdateTagsOnly":{"value":"my-querypack"},"QueryPackCreate":{"value":"my-querypack"},"QueryPackUpdate":{"value":"my-querypack"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow.","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"ErrorResponse":{"description":"Describe the format of an Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"},"LogAnalyticsQueryPack":{"allOf":[{"$ref":"#/components/schemas/QueryPacksResource"}],"description":"An Log Analytics QueryPack definition.","properties":{"properties":{"$ref":"#/components/schemas/LogAnalyticsQueryPackProperties"}},"required":["properties"]},"LogAnalyticsQueryPackListResult":{"description":"Describes the list of Log Analytics QueryPack resources.","properties":{"nextLink":{"description":"The URI to get the next set of Log Analytics QueryPack definitions if too many QueryPacks where returned in the result set.","type":"string"},"value":{"description":"List of Log Analytics QueryPack definitions.","items":{"$ref":"#/components/schemas/LogAnalyticsQueryPack"},"type":"array"}},"required":["value"]},"LogAnalyticsQueryPackProperties":{"description":"Properties that define a Log Analytics QueryPack resource.","properties":{"provisioningState":{"description":"Current state of this QueryPack: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.","readOnly":true,"type":"string"},"queryPackId":{"description":"The unique ID of your application. This field cannot be changed.","readOnly":true,"type":"string"},"timeCreated":{"description":"Creation Date for the Log Analytics QueryPack, in ISO 8601 format.","format":"date-time","readOnly":true,"type":"string"},"timeModified":{"description":"Last modified date of the Log Analytics QueryPack, in ISO 8601 format.","format":"date-time","readOnly":true,"type":"string"}}},"QueryPacksResource":{"description":"An azure resource object","properties":{"id":{"description":"Azure resource Id","readOnly":true,"type":"string"},"location":{"description":"Resource location","type":"string","x-ms-mutability":["create","read"]},"name":{"description":"Azure resource name","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"},"type":{"description":"Azure resource type","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true},"TagsResource":{"description":"A container holding only the Tags for a resource, allowing the user to update the tags on a QueryPack instance.","properties":{"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"}}}}}}