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

[OperationalInsights] Added 201 return status to QueryPacks_CreateOrUpdate #19674

Merged
merged 5 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
Expand Up @@ -107,6 +107,52 @@
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
},
"put": {
"description": "Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.",
"operationId": "QueryPacks_CreateOrUpdateWithoutName",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "LogAnalyticsQueryPackPayload",
"description": "Properties that need to be specified to create or update a Log Analytics QueryPack.",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/LogAnalyticsQueryPack"
}
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
},
"201": {
"description": "Created response definition.",
"schema": {
"$ref": "#/definitions/LogAnalyticsQueryPack"
}
}
},
"x-ms-examples": {
"QueryPackCreateNoName": {
"$ref": "./examples/QueryPacksCreateNoName.json"
},
"QueryPackUpdateNoName": {
"$ref": "./examples/QueryPackUpdateNoName.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2019-09-01",
"subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919",
"resourceGroupName": "my-resource-group",
"queryPackName": "",
"LogAnalyticsQueryPackPayload": {
"location": "South Central US",
"tags": {
"Tag1": "Value1"
},
"properties": {}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks",
"type": "microsoft.operationalinsights/querypacks",
"location": "South Central US",
"tags": {
"Tag1": "Value1"
},
"properties": {
"queryPackId": "aac8fc00-2b68-441e-8f9b-ded8748dc635",
"timeCreated": "2019-06-04T12:37:56.8543652Z",
"timeModified": "2019-08-04T12:37:56.8543652Z",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2019-09-01",
"subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919",
"resourceGroupName": "my-resource-group",
"queryPackName": "",
"LogAnalyticsQueryPackPayload": {
"location": "South Central US",
"properties": {}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.operationalinsights/queryPacks",
"type": "microsoft.operationalinsights/querypacks",
"location": "South Central US",
"tags": {},
"properties": {
"queryPackId": "d1c8fc00-2b68-441e-8f9b-ded8748dc635",
"timeCreated": "2019-08-04T12:37:56.8543652Z",
"timeModified": "2019-08-04T12:37:56.8543652Z",
"provisioningState": "Succeeded"
}
}
}
}
}