UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 13 kB
{"openapi":"3.0.0","info":{"description":"The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.","title":"SqlManagementClient","version":"2017-03-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/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/serverAutomaticTuning.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"sql-serverAutomaticTuning","x-tags":["Azure","Microsoft"]},"paths":{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current":{"get":{"description":"Retrieves server automatic tuning options.","operationId":"ServerAutomaticTuning_Get","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved server automatic tuning properties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAutomaticTuning"},"examples":{"Get a server's automatic tuning settings":{"$ref":"#/components/examples/Get_a_server_s_automatic_tuning_settings"}}}}},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - The requested database was not found\n\n * 404 SubscriptionDoesNotHaveElasticPool - The requested elastic pool was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 405 NotSupported - This functionality is not supported.\n\n * 409 Conflict - Request could not be processed because of conflict in the request.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 503 ServiceTemporarilyUnavailable - Feature temporarily unavailable."}},"tags":["ServerAutomaticTuning"]},"patch":{"description":"Update automatic tuning options on server.","operationId":"ServerAutomaticTuning_Update","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAutomaticTuning"}}},"description":"The requested automatic tuning resource state.","required":true},"responses":{"200":{"description":"Successfully updated the server-level automatic tuning options.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAutomaticTuning"},"examples":{"Updates server automatic tuning settings with all properties":{"$ref":"#/components/examples/Updates_server_automatic_tuning_settings_with_all_properties"},"Updates server automatic tuning settings with minimal properties":{"$ref":"#/components/examples/Updates_server_automatic_tuning_settings_with_minimal_properties"}}}}},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 InvalidAutomaticTuningUpsertRequest - The update automatic tuning request body does not exist or has no properties object.\n\n * 400 InvalidAdvisorAutoExecuteStatus - Specified auto-execute status for the advisor is not allowed.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - The requested database was not found\n\n * 404 SubscriptionDoesNotHaveElasticPool - The requested elastic pool was not found\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 405 NotSupported - This functionality is not supported.\n\n * 409 Conflict - Request could not be processed because of conflict in the request.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 503 ServiceTemporarilyUnavailable - Feature temporarily unavailable."}},"tags":["ServerAutomaticTuning"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_a_server_s_automatic_tuning_settings":{"value":{"id":"/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current","name":"current","properties":{"actualState":"Auto","desiredState":"Auto","options":{"createIndex":{"actualState":"On","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"dropIndex":{"actualState":"Off","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"forceLastGoodPlan":{"actualState":"On","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"maintainIndex":{"actualState":"Off","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"}}},"type":"Microsoft.Sql/servers/automaticTuning"}},"Updates_server_automatic_tuning_settings_with_all_properties":{"value":{"id":"/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current","name":"current","properties":{"actualState":"Auto","desiredState":"Auto","options":{"createIndex":{"actualState":"Off","desiredState":"Off"},"dropIndex":{"actualState":"On","desiredState":"On"},"forceLastGoodPlan":{"actualState":"On","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"maintainIndex":{"actualState":"Off","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"}}},"type":"Microsoft.Sql/servers/automaticTuning"}},"Updates_server_automatic_tuning_settings_with_minimal_properties":{"value":{"id":"/subscriptions/c3aa9078-0000-0000-0000-e36f151182d7/resourceGroups/default-sql-onebox/providers/Microsoft.Sql/servers/testsvr11/automaticTuning/current","name":"current","properties":{"actualState":"Auto","desiredState":"Auto","options":{"createIndex":{"actualState":"On","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"dropIndex":{"actualState":"Off","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"forceLastGoodPlan":{"actualState":"On","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"},"maintainIndex":{"actualState":"Off","desiredState":"Default","reasonCode":2,"reasonDesc":"AutoConfigured"}}},"type":"Microsoft.Sql/servers/automaticTuning"}}},"parameters":{"ApiVersionParameter":{"description":"The API version to use for the request.","in":"query","name":"api-version","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get a server's automatic tuning settings":{"value":"2017-03-01-preview"},"Updates server automatic tuning settings with all properties":{"value":"2017-03-01-preview"},"Updates server automatic tuning settings with minimal properties":{"value":"2017-03-01-preview"}}},"DatabaseNameParameter":{"description":"The name of the database.","in":"path","name":"databaseName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"ManagedInstanceNameParameter":{"description":"The name of the managed instance.","in":"path","name":"managedInstanceName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"ResourceGroupParameter":{"description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get a server's automatic tuning settings":{"value":"default-sql-onebox"},"Updates server automatic tuning settings with all properties":{"value":"default-sql-onebox"},"Updates server automatic tuning settings with minimal properties":{"value":"default-sql-onebox"}}},"ServerNameParameter":{"description":"The name of the server.","in":"path","name":"serverName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get a server's automatic tuning settings":{"value":"testsvr11"},"Updates server automatic tuning settings with all properties":{"value":"testsvr11"},"Updates server automatic tuning settings with minimal properties":{"value":"testsvr11"}}},"SqlVirtualMachineContainerNameParameter":{"description":"The name of the SqlVirtualMachineContainer.","in":"path","name":"sqlVirtualMachineContainerName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"SqlVirtualMachineInstanceNameParameter":{"description":"The name of the SqlVirtualMachineInstance.","in":"path","name":"sqlVirtualMachineInstanceName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"SubscriptionIdParameter":{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get a server's automatic tuning settings":{"value":"c3aa9078-0000-0000-0000-e36f151182d7"},"Updates server automatic tuning settings with all properties":{"value":"c3aa9078-0000-0000-0000-e36f151182d7"},"Updates server automatic tuning settings with minimal properties":{"value":"c3aa9078-0000-0000-0000-e36f151182d7"}}},"VirtualClusterNameParameter":{"description":"The name of the virtual cluster.","in":"path","name":"virtualClusterName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}}},"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":{"AutomaticTuningServerOptions":{"description":"Automatic tuning properties for individual advisors.","properties":{"actualState":{"description":"Automatic tuning option actual state.","enum":["Off","On"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"AutomaticTuningOptionModeActual"}},"desiredState":{"description":"Automatic tuning option desired state.","enum":["Off","On","Default"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"AutomaticTuningOptionModeDesired"}},"reasonCode":{"description":"Reason code if desired and actual state are different.","format":"int32","readOnly":true,"type":"integer"},"reasonDesc":{"description":"Reason description if desired and actual state are different.","enum":["Default","Disabled","AutoConfigured"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"AutomaticTuningServerReason"}}},"type":"object"},"AutomaticTuningServerProperties":{"description":"Server-level Automatic Tuning properties.","properties":{"actualState":{"description":"Automatic tuning actual state.","enum":["Custom","Auto","Unspecified"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":false,"name":"AutomaticTuningServerMode"}},"desiredState":{"description":"Automatic tuning desired state.","enum":["Custom","Auto","Unspecified"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"AutomaticTuningServerMode"}},"options":{"additionalProperties":{"$ref":"#/components/schemas/AutomaticTuningServerOptions"},"description":"Automatic tuning options definition.","type":"object"}},"type":"object"},"ServerAutomaticTuning":{"allOf":[{"allOf":[{"description":"ARM resource.","properties":{"id":{"description":"Resource ID.","readOnly":true,"type":"string"},"name":{"description":"Resource name.","readOnly":true,"type":"string"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"type":"object","x-ms-azure-resource":true}],"description":"ARM proxy resource.","properties":{},"type":"object"}],"description":"Server-level Automatic Tuning.","properties":{"properties":{"$ref":"#/components/schemas/AutomaticTuningServerProperties"}},"type":"object"}}}}