Skip to content

Commit

Permalink
Adding 200 repsonse for Resubscribe API (#29918)
Browse files Browse the repository at this point in the history
* Adding 200 repsonse for Resubscribe API

* Removing trailing space

* Removing trailing empty spaces

* Revert "Removing trailing empty spaces"

This reverts commit 118e53f.

* Reapply "Removing trailing empty spaces"

This reverts commit 7e21c57.

* Removing "format": "arm-id" for openAIResourceId
  • Loading branch information
poshett authored Jul 30, 2024
1 parent afd7c70 commit efd6d5f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2573,9 +2573,8 @@
"type": "object",
"properties": {
"openAIResourceId": {
"description": "The resource id of Open AI resource",
"type": "string",
"format": "arm-id"
"description": "The resource name of Open AI resource",
"type": "string"
},
"openAIResourceEndpoint": {
"description": "The API endpoint for Open AI resource",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2961,9 +2961,8 @@
"type": "object",
"properties": {
"openAIResourceId": {
"description": "The resource id of Open AI resource",
"type": "string",
"format": "arm-id"
"description": "The resource name of Open AI resource",
"type": "string"
},
"openAIResourceEndpoint": {
"description": "The API endpoint for Open AI resource",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,12 @@
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ElasticMonitorResource"
}
},
"202": {
"headers": {
"Location": {
Expand Down Expand Up @@ -3038,9 +3044,8 @@
"type": "object",
"properties": {
"openAIResourceId": {
"description": "The resource id of Open AI resource",
"type": "string",
"format": "arm-id"
"description": "The resource name of Open AI resource",
"type": "string"
},
"openAIResourceEndpoint": {
"description": "The API endpoint for Open AI resource",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,42 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Elastic/monitors",
"sku": {
"name": "free_Monthly"
},
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled",
"elasticProperties": {
"elasticCloudUser": {
"emailAddress": "alice@microsoft.com",
"id": "myid123",
"elasticCloudSsoDefaultUrl": "https://examplessourl.com"
},
"elasticCloudDeployment": {
"name": "deploymentname",
"deploymentId": "deployment_id",
"azureSubscriptionId": "00000000-0000-0000-0000-000000000000",
"elasticsearchRegion": "azure-westus2",
"elasticsearchServiceUrl": "https://elasticsearchendpoint.com",
"kibanaServiceUrl": "https://kibanaserviceurl.com",
"kibanaSsoUrl": "https://kibanssourl.com"
}
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 0
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/subid/resourceGroups/resourceGroup/providers/Microsoft.Elastic/monitor/monitorname/resubscribe?api-version=2024-06-15-preview"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2573,9 +2573,8 @@
"type": "object",
"properties": {
"openAIResourceId": {
"description": "The resource id of Open AI resource",
"type": "string",
"format": "arm-id"
"description": "The resource name of Open AI resource",
"type": "string"
},
"openAIResourceEndpoint": {
"description": "The API endpoint for Open AI resource",
Expand Down

0 comments on commit efd6d5f

Please sign in to comment.