swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector ImportSitesController API schemes: - https tags: - name: ImportSitesController paths: /subscriptions/{subscriptionId}/providers/Microsoft.OffAzure/importSites: get: operationId: microsoftAzureImportsitescontrollerListbysubscription tags: - ImportSitesController description: List ImportSite resources by subscription ID parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/ImportSiteListResult' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-pageable: nextLinkName: nextLink x-ms-examples: ImportSitesController_ListBySubscription_MaximumSet_Gen: $ref: ./examples/ImportSitesController_ListBySubscription_MaximumSet_Gen.json summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Offazure Importsites /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites: get: operationId: microsoftAzureImportsitescontrollerListbyresourcegroup tags: - ImportSitesController description: Get all import sites. parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/ImportSiteListResult' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-pageable: nextLinkName: nextLink x-ms-examples: ImportSitesController_ListByResourceGroup_MaximumSet_Gen: $ref: ./examples/ImportSitesController_ListByResourceGroup_MaximumSet_Gen.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites/{siteName}: get: operationId: microsoftAzureImportsitescontrollerGet tags: - ImportSitesController description: Get a ImportSite parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/ImportSite' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_Get_MaximumSet_Gen: $ref: ./examples/ImportSitesController_Get_MaximumSet_Gen.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename put: operationId: microsoftAzureImportsitescontrollerCreate tags: - ImportSitesController description: Create a ImportSite parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ - name: body in: body description: Resource create parameters. required: true schema: $ref: '#/definitions/ImportSite' responses: '200': description: ARM update operation completed successfully. schema: $ref: '#/definitions/ImportSite' '201': description: ARM create operation completed successfully. schema: $ref: '#/definitions/ImportSite' headers: Retry-After: type: integer format: int32 description: The Retry-After header can indicate how long the client should wait before polling the operation status. default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_Create_MaximumSet_Gen: $ref: ./examples/ImportSitesController_Create_MaximumSet_Gen.json summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename patch: operationId: microsoftAzureImportsitescontrollerUpdate tags: - ImportSitesController description: Update a ImportSite parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ - name: body in: body description: The resource properties to be updated. required: true schema: $ref: '#/definitions/ImportSiteUpdate' responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/ImportSite' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_Update_MaximumSet_Gen: $ref: ./examples/ImportSitesController_Update_MaximumSet_Gen.json summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename delete: operationId: microsoftAzureImportsitescontrollerDelete tags: - ImportSitesController description: Delete a ImportSite parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ responses: '200': description: Resource deleted successfully. '204': description: Resource deleted successfully. default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_Delete_MaximumSet_Gen: $ref: ./examples/ImportSitesController_Delete_MaximumSet_Gen.json summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites/{siteName}/deleteImportedMachines : post: operationId: microsoftAzureImportsitescontrollerDeleteimportedmachines tags: - ImportSitesController description: Deletes the imported machines for site. parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ - name: body in: body description: The content of the action request required: true schema: type: object responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/SasUriResponse' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_DeleteImportedMachines_MaximumSet_Gen: $ref: ./examples/ImportSitesController_DeleteImportedMachines_MaximumSet_Gen.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename Deleteimportedmachines ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites/{siteName}/exportUri : post: operationId: microsoftAzureImportsitescontrollerExporturi tags: - ImportSitesController description: Method to export a site. parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ - name: body in: body description: The content of the action request required: true schema: $ref: '#/definitions/SasUriResponse' responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/SasUriResponse' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_ExportUri_MaximumSet_Gen: $ref: ./examples/ImportSitesController_ExportUri_MaximumSet_Gen.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename Exporturi ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites/{siteName}/importUri : post: operationId: microsoftAzureImportsitescontrollerImporturi tags: - ImportSitesController description: Method to import a site. parameters: - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter - name: siteName in: path description: Site name required: true type: string pattern: ^[a-zA-Z0-9-]{3,24}$ - name: body in: body description: The content of the action request required: true schema: $ref: '#/definitions/SasUriResponse' responses: '200': description: ARM operation completed successfully. schema: $ref: '#/definitions/SasUriResponse' default: description: An unexpected error response. schema: $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse x-ms-examples: ImportSitesController_ImportUri_MaximumSet_Gen: $ref: ./examples/ImportSitesController_ImportUri_MaximumSet_Gen.json summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Offazure Importsites Sitename Importuri definitions: ImportSiteProperties: type: object description: The properties of ImportSiteResource properties: discoverySolutionId: type: string description: Gets or sets the ARM ID of migration hub solution for SDS. masterSiteId: type: string description: Gets the Master Site this site is linked to. readOnly: true serviceEndpoint: type: string description: Gets the service endpoint. readOnly: true provisioningState: $ref: '#/definitions/ProvisioningState' description: The status of the last operation. ImportSiteUpdate: type: object description: The type used for update operations of the ImportSite. properties: tags: type: object description: Resource tags. additionalProperties: type: string properties: $ref: '#/definitions/ImportSiteUpdateProperties' x-ms-client-flatten: true SasUriResponse: type: object description: Import URI response class. properties: jobArmId: type: string description: Gets or sets the job ARM ID. uri: type: string description: Gets or sets the SAS URI. importType: $ref: '#/definitions/ImportTypeValues' description: Gets or sets the import type. default: AzureMigrateCSV ImportSite: type: object description: A ImportSite properties: properties: $ref: '#/definitions/ImportSiteProperties' description: The resource-specific properties for this resource. x-ms-client-flatten: true x-ms-mutability: - read - create allOf: - $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource ImportSiteUpdateProperties: type: object description: The updatable properties of the ImportSite. properties: discoverySolutionId: type: string description: Gets or sets the ARM ID of migration hub solution for SDS. provisioningState: $ref: '#/definitions/ProvisioningState' description: The status of the last operation. ProvisioningState: type: string description: The status of the current operation. enum: - Created - Updated - Running - Completed - Failed - Succeeded - Canceled x-ms-enum: name: ProvisioningState modelAsString: true values: - name: Created value: Created description: Created value. - name: Updated value: Updated description: Updated value. - name: Running value: Running description: Running value. - name: Completed value: Completed description: Completed value. - name: Failed value: Failed description: Failed value. - name: Succeeded value: Succeeded description: Succeeded value. - name: Canceled value: Canceled description: Canceled value. ImportTypeValues: type: string description: ImportTypeValues enum. enum: - AzureMigrateCSV - RVToolsXlsx x-ms-enum: name: ImportTypeValues modelAsString: true values: - name: AzureMigrateCSV value: AzureMigrateCSV description: AzureMigrateCSV value. - name: RVToolsXlsx value: RVToolsXlsx description: RVToolsXlsx value. ImportSiteListResult: type: object description: The response of a ImportSite list operation. properties: value: type: array description: The ImportSite items on this page items: $ref: '#/definitions/ImportSite' nextLink: type: string format: uri description: The link to the next page of items required: - value x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'