openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 16.2 kB
JSON
{"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":"2018-06-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/2018-06-01-preview/ServerAzureADAdministrators.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"sql-ServerAzureADAdministrators","x-tags":["Azure","Microsoft"]},"paths":{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators":{"get":{"description":"Gets a list of server Administrators.","operationId":"ServerAzureADAdministrators_ListByServer","parameters":[{"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":{"Gets a list of Azure Active Directory administrator.":{"value":"2018-06-01-preview"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Gets a list of Azure Active Directory administrator.":{"value":"00000000-1111-2222-3333-444444444444"}}},{"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":{"Gets a list of Azure Active Directory administrator.":{"value":"sqlcrudtest-4799"}}},{"$ref":"#/components/parameters/ServerNameParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of Azure Active Directory administrators.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministratorListResult"},"examples":{"Gets a list of Azure Active Directory administrator.":{"$ref":"#/components/examples/Gets_a_list_of_Azure_Active_Directory_administrator."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["ServerAzureADAdministrators"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}":{"delete":{"description":"Deletes an existing server Active Directory Administrator.","operationId":"ServerAzureADAdministrators_Delete","parameters":[{"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":{"Delete Azure Active Directory administrator.":{"value":"2018-06-01-preview"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Delete Azure Active Directory administrator.":{"value":"00000000-1111-2222-3333-444444444444"}}},{"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":{"Delete Azure Active Directory administrator.":{"value":"sqlcrudtest-4799"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of server active directory administrator.","in":"path","name":"administratorName","required":true,"x-ms-enum":{"modelAsString":true,"name":"AdministratorName"},"schema":{"type":"string","enum":["ActiveDirectory"]},"examples":{"Delete Azure Active Directory administrator.":{"value":"ActiveDirectory"}}}],"responses":{"200":{"description":"Successfully deleted the Azure Active Directory administrator."},"202":{"description":"Accepted"},"204":{"description":"The specified Azure Active Directory administrator does not exist."},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\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."}},"tags":["ServerAzureADAdministrators"],"x-ms-long-running-operation":true},"get":{"description":"Gets a server Administrator.","operationId":"ServerAzureADAdministrators_Get","parameters":[{"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":{"Gets a Azure Active Directory administrator.":{"value":"2018-06-01-preview"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Gets a Azure Active Directory administrator.":{"value":"00000000-1111-2222-3333-444444444444"}}},{"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":{"Gets a Azure Active Directory administrator.":{"value":"sqlcrudtest-4799"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of server active directory administrator.","in":"path","name":"administratorName","required":true,"x-ms-enum":{"modelAsString":true,"name":"AdministratorName"},"schema":{"type":"string","enum":["ActiveDirectory"]},"examples":{"Gets a Azure Active Directory administrator.":{"value":"ActiveDirectory"}}}],"responses":{"200":{"description":"Successfully retrieved a specified Azure Active Directory administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAzureADAdministrator"},"examples":{"Gets a Azure Active Directory administrator.":{"$ref":"#/components/examples/Gets_a_Azure_Active_Directory_administrator."}}}}},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["ServerAzureADAdministrators"]},"put":{"description":"Creates a new Server Active Directory Administrator or updates an existing server Active Directory Administrator.","operationId":"ServerAzureADAdministrators_CreateOrUpdate","parameters":[{"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":{"Creates or updates an existing Azure Active Directory administrator.":{"value":"2018-06-01-preview"}}},{"description":"The subscription ID that identifies an Azure subscription.","in":"path","name":"subscriptionId","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Creates or updates an existing Azure Active Directory administrator.":{"value":"00000000-1111-2222-3333-444444444444"}}},{"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":{"Creates or updates an existing Azure Active Directory administrator.":{"value":"sqlcrudtest-4799"}}},{"$ref":"#/components/parameters/ServerNameParameter"},{"in":"path","name":"administratorName","required":true,"x-ms-enum":{"modelAsString":true,"name":"AdministratorName"},"schema":{"type":"string","enum":["ActiveDirectory"]},"examples":{"Creates or updates an existing Azure Active Directory administrator.":{"value":"ActiveDirectory"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAzureADAdministrator"}}},"description":"The required parameters for creating or updating an Active Directory Administrator.","required":true},"responses":{"200":{"description":"Successfully updated a Azure Active Directory administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAzureADAdministrator"},"examples":{"Creates or updates an existing Azure Active Directory administrator.":{"$ref":"#/components/examples/Creates_or_updates_an_existing_Azure_Active_Directory_administrator."}}}}},"201":{"description":"Successfully created a Azure Active Directory administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerAzureADAdministrator"},"examples":{"Creates or updates an existing Azure Active Directory administrator.":{"$ref":"#/components/examples/Creates_or_updates_an_existing_Azure_Active_Directory_administrator."}}}}},"202":{"description":"Accepted"},"default":{"description":"*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\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."}},"tags":["ServerAzureADAdministrators"],"x-ms-long-running-operation":true}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Gets_a_list_of_Azure_Active_Directory_administrator.":{"value":{"value":[{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/administrators/ActiveDirectory","name":"ActiveDirectory","properties":{"administratorType":"ActiveDirectory","login":"bob@contoso.com","sid":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c","tenantId":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"},"type":"Microsoft.Sql/servers/administrators"}]}},"Gets_a_Azure_Active_Directory_administrator.":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/administrators/ActiveDirectory","name":"activeDirectory","properties":{"administratorType":"ActiveDirectory","login":"bob@contoso.com","sid":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c","tenantId":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"},"type":"Microsoft.Sql/servers/administrators"}},"Creates_or_updates_an_existing_Azure_Active_Directory_administrator.":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-6440/administrators/ActiveDirectory","name":"ActiveDirectory","properties":{"administratorType":"ActiveDirectory","login":"bob@contoso.com","sid":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c","tenantId":"c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"},"type":"Microsoft.Sql/servers/administrators"}}},"parameters":{"BlobAuditingPolicyNameParameter":{"description":"The name of the blob auditing policy.","in":"path","name":"blobAuditingPolicyName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","enum":["default"]}},"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"}},"ServerNameParameter":{"description":"The name of the server.","in":"path","name":"serverName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Gets a list of Azure Active Directory administrator.":{"value":"sqlcrudtest-6440"},"Delete Azure Active Directory administrator.":{"value":"sqlcrudtest-6440"},"Gets a Azure Active Directory administrator.":{"value":"sqlcrudtest-6440"},"Creates or updates an existing Azure Active Directory administrator.":{"value":"sqlcrudtest-6440"}}},"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"}},"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":{"AdministratorListResult":{"description":"A list of active directory administrators.","properties":{"nextLink":{"description":"Link to retrieve next page of results.","readOnly":true,"type":"string"},"value":{"description":"Array of results.","items":{"$ref":"#/components/schemas/ServerAzureADAdministrator"},"readOnly":true,"type":"array"}},"type":"object"},"AdministratorProperties":{"description":"Properties of a active directory administrator.","properties":{"administratorType":{"description":"Type of the sever administrator.","enum":["ActiveDirectory"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"AdministratorType"}},"login":{"description":"Login name of the server administrator.","type":"string"},"sid":{"description":"SID (object ID) of the server administrator.","format":"uuid","type":"string"},"tenantId":{"description":"Tenant ID of the administrator.","format":"uuid","type":"string"}},"required":["administratorType","login","sid"],"type":"object"},"ProxyResource":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"ARM proxy resource.","properties":{},"type":"object"},"Resource":{"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},"ServerAzureADAdministrator":{"allOf":[{"$ref":"#/components/schemas/ProxyResource"}],"description":"Azure Active Directory administrator.","properties":{"properties":{"$ref":"#/components/schemas/AdministratorProperties"}},"type":"object"}}}}