openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 22.1 kB
JSON
{"openapi":"3.0.0","info":{"description":"The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.","title":"MySQLManagementClient","version":"2018-06-01","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/mysql/resource-manager/Microsoft.DBforMySQL/stable/2018-06-01/PerformanceRecommendations.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"mysql-PerformanceRecommendations","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/recommendedActionSessionsAzureAsyncOperation/{operationId}":{"get":{"description":"Recommendation action session operation status.","operationId":"LocationBasedRecommendedActionSessionsOperationStatus_Get","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionSessionOperationStatus":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionSessionOperationStatus":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"$ref":"#/components/parameters/LocationNameParameter"},{"$ref":"#/components/parameters/OperationIdParameter"}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendedActionSessionsOperationStatus"},"examples":{"RecommendedActionSessionOperationStatus":{"$ref":"#/components/examples/RecommendedActionSessionOperationStatus"}}}}}},"tags":["LocationBasedRecommendedActionSessionsOperationStatus"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/recommendedActionSessionsOperationResults/{operationId}":{"get":{"description":"Recommendation action session operation result.","operationId":"LocationBasedRecommendedActionSessionsResult_List","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionSessionResult":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionSessionResult":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"$ref":"#/components/parameters/LocationNameParameter"},{"$ref":"#/components/parameters/OperationIdParameter"}],"responses":{"200":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationActionsResultList"},"examples":{"RecommendedActionSessionResult":{"$ref":"#/components/examples/RecommendedActionSessionResult"}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationActionsResultList"},"examples":{"RecommendedActionSessionResult":{"$ref":"#/components/examples/RecommendedActionSessionResult"}}}}}},"tags":["LocationBasedRecommendedActionSessionsResult"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors":{"get":{"description":"List recommendation action advisors.","operationId":"Advisors_ListByServer","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"AdvisorsListByServer":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"AdvisorsListByServer":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"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":{"AdvisorsListByServer":{"value":"testResourceGroupName"}}},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorsResultList"},"examples":{"AdvisorsListByServer":{"$ref":"#/components/examples/AdvisorsListByServer"}}}}}},"tags":["Advisors"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors/{advisorName}":{"get":{"description":"Get a recommendation action advisor.","operationId":"Advisors_Get","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"AdvisorsGet":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"AdvisorsGet":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"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":{"AdvisorsGet":{"value":"testResourceGroupName"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/AdvisorNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Advisor"},"examples":{"AdvisorsGet":{"$ref":"#/components/examples/AdvisorsGet"}}}}}},"tags":["Advisors"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors/{advisorName}/createRecommendedActionSession":{"post":{"description":"Create recommendation action session for the advisor.","operationId":"CreateRecommendedActionSession","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionSessionCreate":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionSessionCreate":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"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":{"RecommendedActionSessionCreate":{"value":"testResourceGroupName"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/AdvisorNameParameter"},{"description":"The name of the database.","in":"query","name":"databaseName","required":true,"schema":{"type":"string"},"examples":{"RecommendedActionSessionCreate":{"value":"someDatabaseName"}}}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"}},"tags":["RecommendedActionSessions"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors/{advisorName}/recommendedActions":{"get":{"description":"Retrieve recommended actions from the advisor.","operationId":"RecommendedActions_ListByServer","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionsListByServer":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionsListByServer":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"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":{"RecommendedActionsListByServer":{"value":"testResourceGroupName"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/AdvisorNameParameter"},{"description":"The recommendation action session identifier.","in":"query","name":"sessionId","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationActionsResultList"},"examples":{"RecommendedActionsListByServer":{"$ref":"#/components/examples/RecommendedActionsListByServer"}}}}}},"tags":["RecommendedActions"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors/{advisorName}/recommendedActions/{recommendedActionName}":{"get":{"description":"Retrieve recommended actions from the advisor.","operationId":"RecommendedActions_Get","parameters":[{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionsGet":{"value":"2018-06-01"}}},{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"RecommendedActionsGet":{"value":"ffffffff-ffff-ffff-ffff-ffffffffffff"}}},{"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":{"RecommendedActionsGet":{"value":"testResourceGroupName"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/AdvisorNameParameter"},{"$ref":"#/components/parameters/RecommendedActionNameParameter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationAction"},"examples":{"RecommendedActionsGet":{"$ref":"#/components/examples/RecommendedActionsGet"}}}}}},"tags":["RecommendedActions"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"RecommendedActionSessionOperationStatus":{"value":{"name":"aaaabbbb-cccc-dddd-0000-111122223333","startTime":"2019-05-01T17:15:00Z","status":"succeeded"}},"RecommendedActionSessionResult":{"value":{"value":[{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1","name":"Index-1","properties":{"actionId":1,"advisorName":"Index","createdTime":"2019-05-01T23:43:24Z","details":{"engine":"InnoDB","indexColumns":"`movies_genres`.`movie_id`","indexName":"idx_movie_id","indexType":"BTREE","parentTableName":"movies_genres","queryIds":"779","schemaName":"movies","script":"alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)","tableName":"movies_genres"},"expirationTime":"2019-05-08T23:43:24Z","reason":"Column `movies_genres`.`movie_id` appear in Join On clause(s).","recommendationType":"Add","sessionId":"c63c2114-e2a4-4c7a-98c1-85577d1a5d50"},"type":"Microsoft.DBforMySQL/servers/advisors/recommendedActions"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-2","name":"Index-2","properties":{"actionId":2,"advisorName":"Index","createdTime":"2019-05-01T23:43:24Z","details":{"engine":"InnoDB","indexColumns":"`movies_genres`.`genre`","indexName":"idx_genre","indexType":"BTREE","parentTableName":"movies_genres","queryIds":"779","schemaName":"movies","script":"alter table `movies`.`movies_genres` add index `idx_genre` (`genre`)","tableName":"movies_genres"},"expirationTime":"2019-05-08T23:43:24Z","reason":"Column `movies_genres`.`genre` appear in Group By clause(s).","recommendationType":"Add","sessionId":"c63c2114-e2a4-4c7a-98c1-85577d1a5d50"},"type":"Microsoft.DBforMySQL/servers/advisors/recommendedActions"}]}},"AdvisorsListByServer":{"value":{"value":[{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforMySQL/servers/testServerName/advisors/Index","name":"Index","properties":{},"type":"Microsoft.DBforMySQL/servers/advisors"}]}},"AdvisorsGet":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.DBforMySQL/servers/testServerName/advisors/Index","name":"Index","properties":{},"type":"Microsoft.DBforMySQL/servers/advisors"}},"RecommendedActionsListByServer":{"value":{"value":[{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1","name":"Index-1","properties":{"actionId":1,"advisorName":"Index","createdTime":"2019-05-01T23:43:24Z","details":{"engine":"InnoDB","indexColumns":"`movies_genres`.`movie_id`","indexName":"idx_movie_id","indexType":"BTREE","parentTableName":"movies_genres","queryIds":"779","schemaName":"movies","script":"alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)","tableName":"movies_genres"},"expirationTime":"2019-05-08T23:43:24Z","reason":"Column `movies_genres`.`movie_id` appear in Join On clause(s).","recommendationType":"Add","sessionId":"c63c2114-e2a4-4c7a-98c1-85577d1a5d50"},"type":"Microsoft.DBforMySQL/servers/advisors/recommendedActions"},{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-2","name":"Index-2","properties":{"actionId":2,"advisorName":"Index","createdTime":"2019-05-01T23:43:24Z","details":{"engine":"InnoDB","indexColumns":"`movies_genres`.`genre`","indexName":"idx_genre","indexType":"BTREE","parentTableName":"movies_genres","queryIds":"779","schemaName":"movies","script":"alter table `movies`.`movies_genres` add index `idx_genre` (`genre`)","tableName":"movies_genres"},"expirationTime":"2019-05-08T23:43:24Z","reason":"Column `movies_genres`.`genre` appear in Group By clause(s).","recommendationType":"Add","sessionId":"c63c2114-e2a4-4c7a-98c1-85577d1a5d50"},"type":"Microsoft.DBforMySQL/servers/advisors/recommendedActions"}]}},"RecommendedActionsGet":{"value":{"id":"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testResourceGroupName/providers/Microsoft.Sql/servers/testServerName/advisors/Index/recommendedActions/Index-1","name":"Index-1","properties":{"actionId":1,"advisorName":"Index","createdTime":"2019-05-01T23:43:24Z","details":{"engine":"InnoDB","indexColumns":"`movies_genres`.`movie_id`","indexName":"idx_movie_id","indexType":"BTREE","parentTableName":"movies_genres","queryIds":"779","schemaName":"movies","script":"alter table `movies`.`movies_genres` add index `idx_movie_id` (`movie_id`)","tableName":"movies_genres"},"expirationTime":"2019-05-08T23:43:24Z","reason":"Column `movies_genres`.`movie_id` appear in Join On clause(s).","recommendationType":"Add","sessionId":"c63c2114-e2a4-4c7a-98c1-85577d1a5d50"},"type":"Microsoft.DBforMySQL/servers/advisors/recommendedActions"}}},"parameters":{"AdvisorNameParameter":{"description":"The advisor name for recommendation action.","in":"path","name":"advisorName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"AdvisorsGet":{"value":"Index"},"RecommendedActionSessionCreate":{"value":"Index"},"RecommendedActionsListByServer":{"value":"Index"},"RecommendedActionsGet":{"value":"Index"}}},"LocationNameParameter":{"description":"The name of the location.","in":"path","name":"locationName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"RecommendedActionSessionOperationStatus":{"value":"WestUS"},"RecommendedActionSessionResult":{"value":"WestUS"}}},"OperationIdParameter":{"description":"The operation identifier.","in":"path","name":"operationId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"RecommendedActionSessionOperationStatus":{"value":"aaaabbbb-cccc-dddd-0000-111122223333"},"RecommendedActionSessionResult":{"value":"aaaabbbb-cccc-dddd-0000-111122223333"}}},"RecommendedActionNameParameter":{"description":"The recommended action name.","in":"path","name":"recommendedActionName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"RecommendedActionsGet":{"value":"Index-1"}}},"ServerNameParameter":{"description":"The name of the server.","in":"path","name":"serverName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"AdvisorsListByServer":{"value":"testServerName"},"AdvisorsGet":{"value":"testServerName"},"RecommendedActionSessionCreate":{"value":"testServerName"},"RecommendedActionsListByServer":{"value":"testServerName"},"RecommendedActionsGet":{"value":"testServerName"}}}},"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":{"Advisor":{"allOf":[{"allOf":[{"properties":{"id":{"description":"Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}","readOnly":true,"type":"string"},"name":{"description":"The name of the resource","readOnly":true,"type":"string"},"type":{"description":"The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.","readOnly":true,"type":"string"}},"x-ms-azure-resource":true}],"description":"The resource model definition for a ARM proxy resource. It will have everything other than required location and tags"}],"description":"Represents a recommendation action advisor.","properties":{"properties":{"$ref":"#/components/schemas/AdvisorProperties"}}},"AdvisorProperties":{"description":"The properties of a recommendation action advisor.","properties":{}},"AdvisorsResultList":{"description":"A list of query statistics.","properties":{"nextLink":{"description":"Link to retrieve next page of results.","readOnly":true,"type":"string"},"value":{"description":"The list of recommendation action advisors.","items":{"$ref":"#/components/schemas/Advisor"},"readOnly":true,"type":"array"}},"type":"object"},"RecommendationAction":{"allOf":[{"allOf":[{"properties":{"id":{"description":"Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}","readOnly":true,"type":"string"},"name":{"description":"The name of the resource","readOnly":true,"type":"string"},"type":{"description":"The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.","readOnly":true,"type":"string"}},"x-ms-azure-resource":true}],"description":"The resource model definition for a ARM proxy resource. It will have everything other than required location and tags"}],"description":"Represents a Recommendation Action.","properties":{"properties":{"$ref":"#/components/schemas/RecommendationActionProperties"}}},"RecommendationActionProperties":{"description":"The properties of a recommendation action.","properties":{"actionId":{"description":"Recommendation action identifier.","format":"int32","type":"integer"},"advisorName":{"description":"Advisor name.","type":"string"},"createdTime":{"description":"Recommendation action creation time.","format":"date-time","type":"string"},"details":{"additionalProperties":{"type":"string"},"description":"Recommendation action details.","type":"object"},"expirationTime":{"description":"Recommendation action expiration time.","format":"date-time","type":"string"},"reason":{"description":"Recommendation action reason.","type":"string"},"recommendationType":{"description":"Recommendation action type.","type":"string"},"sessionId":{"description":"Recommendation action session identifier.","type":"string"}}},"RecommendationActionsResultList":{"description":"A list of recommendation actions.","properties":{"nextLink":{"description":"Link to retrieve next page of results.","readOnly":true,"type":"string"},"value":{"description":"The list of recommendation action advisors.","items":{"$ref":"#/components/schemas/RecommendationAction"},"readOnly":true,"type":"array"}},"type":"object"},"RecommendedActionSessionsOperationStatus":{"description":"Recommendation action session operation status.","properties":{"name":{"description":"Operation identifier.","type":"string"},"startTime":{"description":"Operation start time.","format":"date-time","type":"string"},"status":{"description":"Operation status.","type":"string"}}}}}}