solutions
Creates, updates, deletes, gets or lists a solutions
resource.
Overview
Name | solutions |
Type | Resource |
Id | azure.migrate_projects.solutions |
Fields
The following fields are returned by SELECT
queries:
- get
Name | Datatype | Description |
---|---|---|
id | string | Gets the relative URL to get to this REST resource. |
name | string | Gets the name of this REST resource. |
etag | string | Gets or sets the ETAG for optimistic concurrency control. |
properties | object | Gets or sets the properties of the solution. |
type | string | Gets the type of this REST resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , migrateProjectName , solutionName | api-version | |
delete | delete | subscriptionId , resourceGroupName , migrateProjectName , solutionName | api-version , Accept-Language | Delete the solution. Deleting non-existent project is a no-operation. |
put_solution | exec | subscriptionId , resourceGroupName , migrateProjectName , solutionName | api-version | |
patch_solution | exec | subscriptionId , resourceGroupName , migrateProjectName , solutionName | api-version | Update a solution with specified name. Supports partial updates, for example only tags can be provided. |
enumerate_solutions | exec | subscriptionId , resourceGroupName , migrateProjectName | api-version | |
cleanup_solution_data | exec | subscriptionId , resourceGroupName , migrateProjectName , solutionName | api-version |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
migrateProjectName | string | Name of the Azure Migrate project. |
resourceGroupName | string | Name of the Azure Resource Group that migrate project is part of. |
solutionName | string | Unique name of a migration solution within a migrate project. |
subscriptionId | string | Azure Subscription Id in which migrate project was created. |
Accept-Language | string | Standard request header. Used by service to respond to client in appropriate language. |
api-version | string | Standard request header. Used by service to identify API version used by client. |
SELECT
examples
- get
OK
SELECT
id,
name,
etag,
properties,
type
FROM azure.migrate_projects.solutions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND migrateProjectName = '{{ migrateProjectName }}' -- required
AND solutionName = '{{ solutionName }}' -- required
AND api-version = '{{ api-version }}'
;
DELETE
examples
- delete
Delete the solution. Deleting non-existent project is a no-operation.
DELETE FROM azure.migrate_projects.solutions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND migrateProjectName = '{{ migrateProjectName }}' --required
AND solutionName = '{{ solutionName }}' --required
AND api-version = '{{ api-version }}'
AND Accept-Language = '{{ Accept-Language }}'
;
Lifecycle Methods
- put_solution
- patch_solution
- enumerate_solutions
- cleanup_solution_data
OK
EXEC azure.migrate_projects.solutions.put_solution
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@migrateProjectName='{{ migrateProjectName }}' --required,
@solutionName='{{ solutionName }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"etag": "{{ etag }}",
"properties": "{{ properties }}"
}'
;
Update a solution with specified name. Supports partial updates, for example only tags can be provided.
EXEC azure.migrate_projects.solutions.patch_solution
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@migrateProjectName='{{ migrateProjectName }}' --required,
@solutionName='{{ solutionName }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"etag": "{{ etag }}",
"properties": "{{ properties }}"
}'
;
OK
EXEC azure.migrate_projects.solutions.enumerate_solutions
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@migrateProjectName='{{ migrateProjectName }}' --required,
@api-version='{{ api-version }}'
;
OK
EXEC azure.migrate_projects.solutions.cleanup_solution_data
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@migrateProjectName='{{ migrateProjectName }}' --required,
@solutionName='{{ solutionName }}' --required,
@api-version='{{ api-version }}'
;