openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 108 kB
JSON
{"openapi":"3.0.0","info":{"description":"The Data Migration Service helps people migrate their data from on-premise database servers to Azure, or from older database software to newer software. The service manages one or more workers that are joined to a customer's virtual network, which is assumed to provide connectivity to their databases. To avoid frequent updates to the resource provider, data migration tasks are implemented by the resource provider in a generic way as task resources, each of which has a task type (which identifies the type of work to run), input, and output. The client is responsible for providing appropriate task type and inputs, which will be passed through unexamined to the machines that implement the functionality, and for understanding the output, which is passed back unexamined to the client.","title":"Azure Data Migration Service Resource Provider","version":"2018-03-15-preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-ms-code-generation-settings":{"name":"DataMigrationServiceClient"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2018-03-15-preview/datamigration.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"datamigration","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.DataMigration/operations":{"get":{"description":"Lists all available actions exposed by the Data Migration Service resource provider.","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"Got action list","content":{"application/json":{"schema":{"description":"OData page of action (operation) objects","properties":{"nextLink":{"description":"URL to load the next page of actions","type":"string"},"value":{"description":"List of actions","items":{"description":"Description of an action supported by the Data Migration Service","properties":{"display":{"description":"Localized display text","properties":{"description":{"description":"The localized operation description","type":"string"},"operation":{"description":"The localized operation name","type":"string"},"provider":{"description":"The localized resource provider name","type":"string"},"resource":{"description":"The localized resource type name","type":"string"}},"type":"object"},"name":{"description":"The fully qualified action name, e.g. Microsoft.DataMigration/services/read","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"examples":{"Operations_List":{"$ref":"#/components/examples/Operations_List"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get available resource provider actions (operations)","tags":["Standard operation","GET"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability":{"post":{"description":"This method checks whether a proposed top-level resource name is valid and available.","operationId":"Services_CheckNameAvailability","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/apiVersion"},{"$ref":"#/components/parameters/location"}],"requestBody":{"$ref":"#/components/requestBodies/Services_CheckNameAvailabilityParameters"},"responses":{"200":{"description":"Name checked","content":{"application/json":{"schema":{"description":"Indicates whether a proposed resource name is available","properties":{"message":{"description":"The localized reason why the name is not available, if nameAvailable is false","type":"string"},"nameAvailable":{"description":"If true, the name is valid and available. If false, 'reason' describes why not.","type":"boolean"},"reason":{"description":"The reason why the name is not available, if nameAvailable is false","enum":["AlreadyExists","Invalid"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"NameCheckFailureReason"}}},"type":"object"},"examples":{"Services_CheckNameAvailability":{"$ref":"#/components/examples/Services_CheckNameAvailability"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Check name validity and availability","tags":["Standard operation","POST"]}},"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages":{"get":{"description":"This method returns region-specific quotas and resource usage information for the Data Migration Service.","operationId":"Usages_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/location"},{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"Quotas returned","content":{"application/json":{"schema":{"description":"OData page of quota objects","properties":{"nextLink":{"description":"URL to load the next page of quotas, or null or missing if this is the last page","type":"string"},"value":{"description":"List of quotas","items":{"description":"Describes a quota for or usage details about a resource","properties":{"currentValue":{"description":"The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.","format":"double","type":"number"},"id":{"description":"The resource ID of the quota object","type":"string"},"limit":{"description":"The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.","format":"double","type":"number"},"name":{"description":"The name of the quota","properties":{"localizedValue":{"description":"The localized name of the quota","type":"string"},"value":{"description":"The unlocalized name (or ID) of the quota","type":"string"}},"type":"object"},"unit":{"description":"The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"examples":{"Services_Usages":{"$ref":"#/components/examples/Services_Usages"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get resource quotas and usage information","tags":["Standard operation","GET"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services":{"get":{"description":"The services resource is the top-level resource that represents the Data Migration Service. This method returns a list of service resources in a subscription.","operationId":"Services_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"Got services","content":{"application/json":{"schema":{"description":"OData page of service objects","properties":{"nextLink":{"description":"URL to load the next page of services","type":"string"},"value":{"description":"List of services","items":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A Data Migration Service resource","properties":{"etag":{"description":"HTTP strong entity tag value. Ignored if submitted","type":"string"},"kind":{"description":"The resource kind. Only 'vm' (the default) is supported.","type":"string"},"properties":{"description":"Properties of the Data Migration service instance","properties":{"provisioningState":{"description":"The resource's provisioning state","enum":["Accepted","Deleting","Deploying","Stopped","Stopping","Starting","FailedToStart","FailedToStop","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServiceProvisioningState"}},"publicKey":{"description":"The public key of the service, used to encrypt secrets sent to the service","type":"string"},"virtualSubnetId":{"description":"The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined","type":"string"}},"required":["virtualSubnetId"],"type":"object"},"sku":{"description":"An Azure SKU instance","properties":{"capacity":{"description":"The capacity of the SKU, if it supports scaling","type":"integer"},"family":{"description":"The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines","type":"string"},"name":{"description":"The unique name of the SKU, such as 'P3'","type":"string"},"size":{"description":"The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines","type":"string"},"tier":{"description":"The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'","type":"string"}},"type":"object"}},"type":"object"},"type":"array"}},"type":"object"},"examples":{"Services_List":{"$ref":"#/components/examples/Services_List"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get services in subscription","tags":["Service resource","Standard operation","GET"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus":{"get":{"description":"The skus action returns the list of SKUs that DMS supports.","operationId":"ResourceSkus_ListSkus","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"Got SKUs","content":{"application/json":{"schema":{"description":"The DMS List SKUs operation response.","properties":{"nextLink":{"description":"The uri to fetch the next page of DMS SKUs. Call ListNext() with this to fetch the next page of DMS SKUs.","type":"string"},"value":{"description":"The list of SKUs available for the subscription.","items":{"description":"Describes an available DMS SKU.","properties":{"apiVersions":{"description":"The api versions that support this SKU.","items":{"type":"string"},"readOnly":true,"type":"array"},"capabilities":{"description":"A name value pair to describe the capability.","items":{"description":"Describes The SKU capabilites object.","properties":{"name":{"description":"An invariant to describe the feature.","readOnly":true,"type":"string"},"value":{"description":"An invariant if the feature is measured by quantity.","readOnly":true,"type":"string"}}},"readOnly":true,"type":"array"},"capacity":{"description":"Describes scaling information of a SKU.","properties":{"default":{"description":"The default capacity.","format":"int64","readOnly":true,"type":"integer"},"maximum":{"description":"The maximum capacity.","format":"int64","readOnly":true,"type":"integer"},"minimum":{"description":"The minimum capacity.","format":"int64","readOnly":true,"type":"integer"},"scaleType":{"description":"The scale type applicable to the SKU.","enum":["Automatic","Manual","None"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ResourceSkuCapacityScaleType"}}}},"costs":{"description":"Metadata for retrieving price info.","items":{"description":"Describes metadata for retrieving price info.","properties":{"extendedUnit":{"description":"An invariant to show the extended unit.","readOnly":true,"type":"string"},"meterID":{"description":"Used for querying price from commerce.","readOnly":true,"type":"string"},"quantity":{"description":"The multiplier is needed to extend the base metered cost.","format":"int64","readOnly":true,"type":"integer"}}},"readOnly":true,"type":"array"},"family":{"description":"The Family of this particular SKU.","readOnly":true,"type":"string"},"kind":{"description":"The Kind of resources that are supported in this SKU.","readOnly":true,"type":"string"},"locations":{"description":"The set of locations that the SKU is available.","items":{"type":"string"},"readOnly":true,"type":"array"},"name":{"description":"The name of SKU.","readOnly":true,"type":"string"},"resourceType":{"description":"The type of resource the SKU applies to.","readOnly":true,"type":"string"},"restrictions":{"description":"The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.","items":{"description":"Describes scaling information of a SKU.","properties":{"reasonCode":{"description":"The reason code for restriction.","enum":["QuotaId","NotAvailableForSubscription"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ResourceSkuRestrictionsReasonCode"}},"type":{"description":"The type of restrictions.","enum":["location"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ResourceSkuRestrictionsType"}},"values":{"description":"The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.","items":{"type":"string"},"readOnly":true,"type":"array"}}},"readOnly":true,"type":"array"},"size":{"description":"The Size of the SKU.","readOnly":true,"type":"string"},"tier":{"description":"Specifies the tier of DMS in a scale set.","readOnly":true,"type":"string"}}},"type":"array"}},"required":["value"]},"examples":{"ListSkus":{"$ref":"#/components/examples/ListSkus"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get supported SKUs","tags":["Standard operation","GET"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services":{"get":{"description":"The Services resource is the top-level resource that represents the Data Migration Service. This method returns a list of service resources in a resource group.","operationId":"Services_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/groupName"},{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"Got services","content":{"application/json":{"schema":{"description":"OData page of service objects","properties":{"nextLink":{"description":"URL to load the next page of services","type":"string"},"value":{"description":"List of services","items":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A Data Migration Service resource","properties":{"etag":{"description":"HTTP strong entity tag value. Ignored if submitted","type":"string"},"kind":{"description":"The resource kind. Only 'vm' (the default) is supported.","type":"string"},"properties":{"description":"Properties of the Data Migration service instance","properties":{"provisioningState":{"description":"The resource's provisioning state","enum":["Accepted","Deleting","Deploying","Stopped","Stopping","Starting","FailedToStart","FailedToStop","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServiceProvisioningState"}},"publicKey":{"description":"The public key of the service, used to encrypt secrets sent to the service","type":"string"},"virtualSubnetId":{"description":"The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined","type":"string"}},"required":["virtualSubnetId"],"type":"object"},"sku":{"description":"An Azure SKU instance","properties":{"capacity":{"description":"The capacity of the SKU, if it supports scaling","type":"integer"},"family":{"description":"The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines","type":"string"},"name":{"description":"The unique name of the SKU, such as 'P3'","type":"string"},"size":{"description":"The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines","type":"string"},"tier":{"description":"The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'","type":"string"}},"type":"object"}},"type":"object"},"type":"array"}},"type":"object"},"examples":{"Services_ListByResourceGroup":{"$ref":"#/components/examples/Services_ListByResourceGroup"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get services in resource group","tags":["Service resource","Standard operation","GET"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}":{"delete":{"description":"The services resource is the top-level resource that represents the Data Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.","operationId":"Services_Delete","parameters":[{"$ref":"#/components/parameters/deleteRunningTasks"}],"responses":{"200":{"description":"Service resource deleted"},"202":{"description":"Deletion accepted"},"204":{"description":"Service not found"},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Delete DMS Service Instance","tags":["Service resource","Standard operation","DELETE"],"x-ms-long-running-operation":true},"get":{"description":"The services resource is the top-level resource that represents the Data Migration Service. The GET method retrieves information about a service instance.","operationId":"Services_Get","responses":{"200":{"description":"A service instance resource","content":{"application/json":{"schema":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A Data Migration Service resource","properties":{"etag":{"description":"HTTP strong entity tag value. Ignored if submitted","type":"string"},"kind":{"description":"The resource kind. Only 'vm' (the default) is supported.","type":"string"},"properties":{"description":"Properties of the Data Migration service instance","properties":{"provisioningState":{"description":"The resource's provisioning state","enum":["Accepted","Deleting","Deploying","Stopped","Stopping","Starting","FailedToStart","FailedToStop","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServiceProvisioningState"}},"publicKey":{"description":"The public key of the service, used to encrypt secrets sent to the service","type":"string"},"virtualSubnetId":{"description":"The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined","type":"string"}},"required":["virtualSubnetId"],"type":"object"},"sku":{"description":"An Azure SKU instance","properties":{"capacity":{"description":"The capacity of the SKU, if it supports scaling","type":"integer"},"family":{"description":"The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines","type":"string"},"name":{"description":"The unique name of the SKU, such as 'P3'","type":"string"},"size":{"description":"The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines","type":"string"},"tier":{"description":"The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Services_CreateOrUpdate":{"$ref":"#/components/examples/Services_CreateOrUpdate"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get DMS Service Instance","tags":["Service resource","Standard operation","GET"]},"parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/groupName"},{"$ref":"#/components/parameters/serviceName"},{"$ref":"#/components/parameters/apiVersion"}],"patch":{"description":"The services resource is the top-level resource that represents the Data Migration Service. The PATCH method updates an existing service. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request (\"ServiceIsBusy\").","operationId":"Services_Update","requestBody":{"$ref":"#/components/requestBodies/Services_UpdateParameters"},"responses":{"200":{"description":"Service resource updated","content":{"application/json":{"schema":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A Data Migration Service resource","properties":{"etag":{"description":"HTTP strong entity tag value. Ignored if submitted","type":"string"},"kind":{"description":"The resource kind. Only 'vm' (the default) is supported.","type":"string"},"properties":{"description":"Properties of the Data Migration service instance","properties":{"provisioningState":{"description":"The resource's provisioning state","enum":["Accepted","Deleting","Deploying","Stopped","Stopping","Starting","FailedToStart","FailedToStop","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServiceProvisioningState"}},"publicKey":{"description":"The public key of the service, used to encrypt secrets sent to the service","type":"string"},"virtualSubnetId":{"description":"The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined","type":"string"}},"required":["virtualSubnetId"],"type":"object"},"sku":{"description":"An Azure SKU instance","properties":{"capacity":{"description":"The capacity of the SKU, if it supports scaling","type":"integer"},"family":{"description":"The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines","type":"string"},"name":{"description":"The unique name of the SKU, such as 'P3'","type":"string"},"size":{"description":"The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines","type":"string"},"tier":{"description":"The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Services_CreateOrUpdate":{"$ref":"#/components/examples/Services_CreateOrUpdate"}}}}},"202":{"description":"Update accepted"},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Create or update DMS Service Instance","tags":["Service resource","Standard operation","PATCH"],"x-ms-long-running-operation":true},"put":{"description":"The services resource is the top-level resource that represents the Data Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, \"vm\", which refers to a VM-based service, although other kinds may be added in the future. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request (\"ServiceIsBusy\"). The provider will reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState property.","operationId":"Services_CreateOrUpdate","requestBody":{"$ref":"#/components/requestBodies/Services_UpdateParameters"},"responses":{"200":{"description":"Service updated","content":{"application/json":{"schema":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A Data Migration Service resource","properties":{"etag":{"description":"HTTP strong entity tag value. Ignored if submitted","type":"string"},"kind":{"description":"The resource kind. Only 'vm' (the default) is supported.","type":"string"},"properties":{"description":"Properties of the Data Migration service instance","properties":{"provisioningState":{"description":"The resource's provisioning state","enum":["Accepted","Deleting","Deploying","Stopped","Stopping","Starting","FailedToStart","FailedToStop","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServiceProvisioningState"}},"publicKey":{"description":"The public key of the service, used to encrypt secrets sent to the service","type":"string"},"virtualSubnetId":{"description":"The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined","type":"string"}},"required":["virtualSubnetId"],"type":"object"},"sku":{"description":"An Azure SKU instance","properties":{"capacity":{"description":"The capacity of the SKU, if it supports scaling","type":"integer"},"family":{"description":"The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines","type":"string"},"name":{"description":"The unique name of the SKU, such as 'P3'","type":"string"},"size":{"description":"The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines","type":"string"},"tier":{"description":"The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Services_CreateOrUpdate":{"$ref":"#/components/examples/Services_CreateOrUpdate"}}}}},"201":{"description":"Service created (use provisioningState)","content":{"application/json":{"schema":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A Data Migration Service resource","properties":{"etag":{"description":"HTTP strong entity tag value. Ignored if submitted","type":"string"},"kind":{"description":"The resource kind. Only 'vm' (the default) is supported.","type":"string"},"properties":{"description":"Properties of the Data Migration service instance","properties":{"provisioningState":{"description":"The resource's provisioning state","enum":["Accepted","Deleting","Deploying","Stopped","Stopping","Starting","FailedToStart","FailedToStop","Succeeded","Failed"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ServiceProvisioningState"}},"publicKey":{"description":"The public key of the service, used to encrypt secrets sent to the service","type":"string"},"virtualSubnetId":{"description":"The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined","type":"string"}},"required":["virtualSubnetId"],"type":"object"},"sku":{"description":"An Azure SKU instance","properties":{"capacity":{"description":"The capacity of the SKU, if it supports scaling","type":"integer"},"family":{"description":"The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines","type":"string"},"name":{"description":"The unique name of the SKU, such as 'P3'","type":"string"},"size":{"description":"The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines","type":"string"},"tier":{"description":"The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'","type":"string"}},"type":"object"}},"type":"object"},"examples":{"Services_CreateOrUpdate":{"$ref":"#/components/examples/Services_CreateOrUpdate"}}}}},"202":{"description":"Update accepted"},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Create or update DMS Instance","tags":["Service resource","Standard operation","PUT"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability":{"post":{"description":"This method checks whether a proposed nested resource name is valid and available.","operationId":"Services_CheckChildrenNameAvailability","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/groupName"},{"$ref":"#/components/parameters/apiVersion"},{"$ref":"#/components/parameters/serviceName"}],"requestBody":{"$ref":"#/components/requestBodies/Services_CheckNameAvailabilityParameters"},"responses":{"200":{"description":"Name checked","content":{"application/json":{"schema":{"description":"Indicates whether a proposed resource name is available","properties":{"message":{"description":"The localized reason why the name is not available, if nameAvailable is false","type":"string"},"nameAvailable":{"description":"If true, the name is valid and available. If false, 'reason' describes why not.","type":"boolean"},"reason":{"description":"The reason why the name is not available, if nameAvailable is false","enum":["AlreadyExists","Invalid"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"NameCheckFailureReason"}}},"type":"object"},"examples":{"Services_CheckChildrenNameAvailability":{"$ref":"#/components/examples/Services_CheckChildrenNameAvailability"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Check nested resource name validity and availability","tags":["Custom operation","POST"]}},"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus":{"post":{"description":"The services resource is the top-level resource that represents the Data Migration Service. This action performs a health check and returns the status of the service and virtual machine size.","operationId":"Services_CheckStatus","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/groupName"},{"$ref":"#/components/parameters/serviceName"},{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"Health checked","content":{"application/json":{"schema":{"description":"Service health status","properties":{"agentVersion":{"description":"The DMS instance agent version","type":"string"},"status":{"description":"The machine-readable status, such as 'Initializing', 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed'","type":"string"},"supportedTaskTypes":{"description":"The list of supported task types","items":{"description":"Migration task type","type":"string"},"type":"array"},"vmSize":{"description":"The services virtual machine size, such as 'Standard_D2_v2'","type":"string"}},"type":"object"},"examples":{"Services_CheckStatus":{"$ref":"#/components/examples/Services_CheckStatus"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Check service health status","tags":["Service resource","Custom operation","POST"]}},"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects":{"get":{"description":"The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.","operationId":"Projects_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/groupName"},{"$ref":"#/components/parameters/serviceName"},{"$ref":"#/components/parameters/apiVersion"}],"responses":{"200":{"description":"List of projects","content":{"application/json":{"schema":{"description":"OData page of project resources","properties":{"nextLink":{"description":"URL to load the next page of projects","type":"string"},"value":{"description":"List of projects","items":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A project resource","properties":{"properties":{"description":"Project-specific properties","properties":{"creationTime":{"description":"UTC Date and time when project was created","format":"date-time","readOnly":true,"type":"string"},"databasesInfo":{"description":"List of DatabaseInfo","items":{"description":"Project Database Details","properties":{"sourceDatabaseName":{"description":"Name of the database","type":"string"}},"required":["sourceDatabaseName"],"type":"object"},"type":"array"},"provisioningState":{"description":"The project's provisioning state","enum":["Deleting","Succeeded"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProjectProvisioningState"}},"sourceConnectionInfo":{"description":"Defines the connection properties of a server","discriminator":{"propertyName":"type"},"properties":{"password":{"description":"Password credential.","type":"string"},"type":{"description":"Type of connection info","type":"string"},"userName":{"description":"User name","type":"string"}},"required":["type"],"type":"object","x-ms-discriminator-value":"Unknown"},"sourcePlatform":{"description":"Source platform of the project","enum":["SQL","Unknown"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProjectSourcePlatform"}},"targetConnectionInfo":{"description":"Defines the connection properties of a server","discriminator":{"propertyName":"type"},"properties":{"password":{"description":"Password credential.","type":"string"},"type":{"description":"Type of connection info","type":"string"},"userName":{"description":"User name","type":"string"}},"required":["type"],"type":"object","x-ms-discriminator-value":"Unknown"},"targetPlatform":{"description":"Target platform of the project","enum":["SQLDB","Unknown"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProjectTargetPlatform"}}},"required":["sourcePlatform","targetPlatform"],"type":"object"}},"type":"object"},"type":"array"}},"type":"object"},"examples":{"Projects_List":{"$ref":"#/components/examples/Projects_List"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get projects in a service","tags":["Project resource","Standard operation","GET"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}":{"delete":{"description":"The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.","operationId":"Projects_Delete","parameters":[{"$ref":"#/components/parameters/deleteRunningTasks"}],"responses":{"200":{"description":"Project resource deleted"},"204":{"description":"Not found"},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Delete project","tags":["Project resource","Standard operation","DELETE"]},"get":{"description":"The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.","operationId":"Projects_Get","responses":{"200":{"description":"A project resource","content":{"application/json":{"schema":{"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"}},"x-ms-azure-resource":true}],"description":"ARM tracked top level resource.","properties":{"location":{"description":"Resource location.","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"required":["location"]}],"description":"A project resource","properties":{"properties":{"description":"Project-specific properties","properties":{"creationTime":{"description":"UTC Date and time when project was created","format":"date-time","readOnly":true,"type":"string"},"databasesInfo":{"description":"List of DatabaseInfo","items":{"description":"Project Database Details","properties":{"sourceDatabaseName":{"description":"Name of the database","type":"string"}},"required":["sourceDatabaseName"],"type":"object"},"type":"array"},"provisioningState":{"description":"The project's provisioning state","enum":["Deleting","Succeeded"],"readOnly":true,"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProjectProvisioningState"}},"sourceConnectionInfo":{"description":"Defines the connection properties of a server","discriminator":{"propertyName":"type"},"properties":{"password":{"description":"Password credential.","type":"string"},"type":{"description":"Type of connection info","type":"string"},"userName":{"description":"User name","type":"string"}},"required":["type"],"type":"object","x-ms-discriminator-value":"Unknown"},"sourcePlatform":{"description":"Source platform of the project","enum":["SQL","Unknown"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProjectSourcePlatform"}},"targetConnectionInfo":{"description":"Defines the connection properties of a server","discriminator":{"propertyName":"type"},"properties":{"password":{"description":"Password credential.","type":"string"},"type":{"description":"Type of connection info","type":"string"},"userName":{"description":"User name","type":"string"}},"required":["type"],"type":"object","x-ms-discriminator-value":"Unknown"},"targetPlatform":{"description":"Target platform of the project","enum":["SQLDB","Unknown"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ProjectTargetPlatform"}}},"required":["sourcePlatform","targetPlatform"],"type":"object"}},"type":"object"},"examples":{"Projects_Get":{"$ref":"#/components/examples/Projects_Get"}}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"description":"Error information.","properties":{"error":{"description":"Error information in OData format.","properties":{"code":{"description":"The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'","type":"string"},"details":{"description":"Inner errors that caused this error","items":{"$ref":"#/components/schemas/ODataError"},"type":"array"},"message":{"description":"The human-readable description of the error","type":"string"}},"type":"object"}},"type":"object"}}}}},"summary":"Get project information","tags":["Project resource","Standard operation","GET"]},"parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/groupName"},{"$ref":"#/components/parameters/serviceName"},{"$ref":"#/components/parameters/projectName"},{"$ref":"#/components/parameters/apiVersion"}],"patch":{"description":"The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.","operationId":"Projects_Update","requestBody":{"$ref":"#/components/requestBodies/Projects_UpdatePa