UNPKG

openapi-directory

Version:

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

1 lines 14.4 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":"2015-05-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/2015-05-01-preview/encryptionProtectors.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"sql-encryptionProtectors","x-tags":["Azure","Microsoft"]},"paths":{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector":{"get":{"description":"Gets a list of server encryption protectors","operationId":"EncryptionProtectors_ListByServer","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the list of server encryption protector.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionProtectorListResult"},"examples":{"List encryption protectors by server":{"$ref":"#/components/examples/List_encryption_protectors_by_server"}}}}},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidKeyName - An invalid value was given for the server key name.\n\n * 400 InvalidKeyType - The create server key type is not supported.\n\n * 400 InvalidKeyUpsertRequest - The create server key request does not exist or has no properties object.\n\n * 400 InvalidEncryptionProtectorName - The encryption protector key name is not supported.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"}},"tags":["EncryptionProtectors"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}":{"get":{"description":"Gets a server encryption protector.","operationId":"EncryptionProtectors_Get","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of the encryption protector to be retrieved.","in":"path","name":"encryptionProtectorName","required":true,"x-ms-enum":{"modelAsString":true,"name":"EncryptionProtectorName"},"schema":{"type":"string","enum":["current"]},"examples":{"Get the encryption protector":{"value":"current"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successfully retrieved the specified server encryption protector.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionProtector"},"examples":{"Get the encryption protector":{"$ref":"#/components/examples/Get_the_encryption_protector"}}}}},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidKeyName - An invalid value was given for the server key name.\n\n * 400 InvalidKeyType - The create server key type is not supported.\n\n * 400 InvalidKeyUpsertRequest - The create server key request does not exist or has no properties object.\n\n * 400 InvalidEncryptionProtectorName - The encryption protector key name is not supported.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."}},"tags":["EncryptionProtectors"]},"put":{"description":"Updates an existing encryption protector.","operationId":"EncryptionProtectors_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/ResourceGroupParameter"},{"$ref":"#/components/parameters/ServerNameParameter"},{"description":"The name of the encryption protector to be updated.","in":"path","name":"encryptionProtectorName","required":true,"x-ms-enum":{"modelAsString":true,"name":"EncryptionProtectorName"},"schema":{"type":"string","enum":["current"]},"examples":{"Update the encryption protector to key vault":{"value":"current"},"Update the encryption protector to service managed":{"value":"current"}}},{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionProtector"}}},"description":"The requested encryption protector resource state.","required":true},"responses":{"200":{"description":"Successfully updated the encryption protector.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionProtector"},"examples":{"Update the encryption protector to key vault":{"$ref":"#/components/examples/Update_the_encryption_protector_to_key_vault"},"Update the encryption protector to service managed":{"$ref":"#/components/examples/Update_the_encryption_protector_to_service_managed"}}}}},"202":{"description":"Accepted"},"default":{"description":"*** Error Responses: ***\n\n * 400 InvalidKeyName - An invalid value was given for the server key name.\n\n * 400 InvalidKeyType - The create server key type is not supported.\n\n * 400 InvalidKeyUpsertRequest - The create server key request does not exist or has no properties object.\n\n * 400 InvalidEncryptionProtectorName - The encryption protector key name is not supported.\n\n * 400 AzureKeyVaultInvalidExpirationDate - The operation could not be completed because the Azure Key Vault key expiration date is invalid.\n\n * 400 AzureKeyVaultInvalidUri - An invalid response from Azure Key Vault. Please use a valid Azure Key Vault URI.\n\n * 400 AzureKeyVaultMalformedVaultUri - The provided Key Vault uri is not valid.\n\n * 401 AzureKeyVaultKeyDisabled - The operation could not be completed on the server because the Azure Key Vault key is disabled.\n\n * 401 AzureKeyVaultNoServerIdentity - The server identity is not correctly configured on server. Please contact support.\n\n * 401 AzureKeyVaultMissingPermissions - The server is missing required permissions on the Azure Key Vault. \n\n * 401 AdalGenericError - The operation could not be completed because an Azure Active Directory error was encountered.\n\n * 401 AdalServicePrincipalNotFound - The operation could not be completed because an Azure Active Directory library Service Principal not found error was encountered.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 ServerKeyNotFound - The requested server key was not found on the current subscription.\n\n * 409 ServerKeyUriAlreadyExists - The server key URI already exists on the server.\n\n * 409 ServerKeyDoesNotExists - The server key does not exist.\n\n * 409 AzureKeyVaultKeyNameNotFound - The operation could not be completed because the Azure Key Vault Key name does not exist.\n\n * 409 AzureKeyVaultKeyInUse - The key is currently being used by the server.\n\n * 409 ServerKeyNameAlreadyExists - The server key already exists on the server.\n\n * 503 AzureKeyVaultConnectionFailed - The operation could not be completed on the server because attempts to connect to Azure Key Vault have failed\n\n * 503 AzureKeyVaultGenericConnectionError - The operation could not be completed because an error was encountered when attempting to retrieve Key Vault information ."}},"tags":["EncryptionProtectors"],"x-ms-long-running-operation":true}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"List_encryption_protectors_by_server":{"value":{"value":[{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current","kind":"azurekeyvault","location":"Japan East","name":"current","properties":{"serverKeyName":"someVault_someKey_01234567890123456789012345678901","serverKeyType":"AzureKeyVault","uri":"https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"},"type":"Microsoft.Sql/servers/encryptionProtector"}]}},"Get_the_encryption_protector":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current","kind":"azurekeyvault","location":"Japan East","name":"current","properties":{"serverKeyName":"someVault_someKey_01234567890123456789012345678901","serverKeyType":"AzureKeyVault","uri":"https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"},"type":"Microsoft.Sql/servers/encryptionProtector"}},"Update_the_encryption_protector_to_key_vault":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current","kind":"azurekeyvault","location":"West US","name":"current","properties":{"serverKeyName":"someVault_someKey_01234567890123456789012345678901","serverKeyType":"AzureKeyVault"},"type":"Microsoft.Sql/servers/encryptionProtector"}},"Update_the_encryption_protector_to_service_managed":{"value":{"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current","kind":"servicemanaged","location":"West US","name":"current","properties":{"serverKeyName":"ServiceManaged","serverKeyType":"ServiceManaged"},"type":"Microsoft.Sql/servers/encryptionProtector"}}},"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":{"List encryption protectors by server":{"value":"2015-05-01-preview"},"Get the encryption protector":{"value":"2015-05-01-preview"},"Update the encryption protector to key vault":{"value":"2015-05-01-preview"},"Update the encryption protector to service managed":{"value":"2015-05-01-preview"}}},"DatabaseNameParameter":{"description":"The name of the database.","in":"path","name":"databaseName","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":{"List encryption protectors by server":{"value":"sqlcrudtest-7398"},"Get the encryption protector":{"value":"sqlcrudtest-7398"},"Update the encryption protector to key vault":{"value":"sqlcrudtest-7398"},"Update the encryption protector to service managed":{"value":"sqlcrudtest-7398"}}},"ServerNameParameter":{"description":"The name of the server.","in":"path","name":"serverName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"List encryption protectors by server":{"value":"sqlcrudtest-4645"},"Get the encryption protector":{"value":"sqlcrudtest-4645"},"Update the encryption protector to key vault":{"value":"sqlcrudtest-4645"},"Update the encryption protector to service managed":{"value":"sqlcrudtest-4645"}}},"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":{"List encryption protectors by server":{"value":"00000000-1111-2222-3333-444444444444"},"Get the encryption protector":{"value":"00000000-1111-2222-3333-444444444444"},"Update the encryption protector to key vault":{"value":"00000000-1111-2222-3333-444444444444"},"Update the encryption protector to service managed":{"value":"00000000-1111-2222-3333-444444444444"}}}},"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":{"EncryptionProtector":{"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":"The server encryption protector.","properties":{"kind":{"description":"Kind of encryption protector. This is metadata used for the Azure portal experience.","type":"string"},"location":{"description":"Resource location.","readOnly":true,"type":"string"},"properties":{"$ref":"#/components/schemas/EncryptionProtectorProperties"}},"type":"object"},"EncryptionProtectorListResult":{"description":"A list of server encryption protectors.","properties":{"nextLink":{"description":"Link to retrieve next page of results.","readOnly":true,"type":"string"},"value":{"description":"Array of results.","items":{"$ref":"#/components/schemas/EncryptionProtector"},"readOnly":true,"type":"array"}},"type":"object"},"EncryptionProtectorProperties":{"description":"Properties for an encryption protector execution.","properties":{"serverKeyName":{"description":"The name of the server key.","type":"string"},"serverKeyType":{"description":"The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.","enum":["ServiceManaged","AzureKeyVault"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServerKeyType"}},"subregion":{"description":"Subregion of the encryption protector.","readOnly":true,"type":"string"},"thumbprint":{"description":"Thumbprint of the server key.","readOnly":true,"type":"string"},"uri":{"description":"The URI of the server key.","readOnly":true,"type":"string"}},"required":["serverKeyType"],"type":"object"}}}}