Skip to main content

projects

Creates, updates, deletes, gets or lists a projects resource.

Overview

Nameprojects
TypeResource
Idazure.storage_mover.projects

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storageMoverNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprojectName, resourceGroupName, storageMoverName, subscriptionIdGets a Project resource.
listSELECTresourceGroupName, storageMoverName, subscriptionIdLists all Projects in a Storage Mover.
create_or_updateINSERTprojectName, resourceGroupName, storageMoverName, subscriptionIdCreates or updates a Project resource, which is a logical grouping of related jobs.
deleteDELETEprojectName, resourceGroupName, storageMoverName, subscriptionIdDeletes a Project resource.
updateUPDATEprojectName, resourceGroupName, storageMoverName, subscriptionIdUpdates properties for a Project resource. Properties not specified in the request body will be unchanged.

SELECT examples

Lists all Projects in a Storage Mover.

SELECT
description,
projectName,
provisioning_state,
resourceGroupName,
storageMoverName,
subscriptionId,
system_data
FROM azure.storage_mover.vw_projects
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new projects resource.

/*+ create */
INSERT INTO azure.storage_mover.projects (
projectName,
resourceGroupName,
storageMoverName,
subscriptionId,
properties,
systemData
)
SELECT
'{{ projectName }}',
'{{ resourceGroupName }}',
'{{ storageMoverName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a projects resource.

/*+ update */
UPDATE azure.storage_mover.projects
SET
properties = '{{ properties }}'
WHERE
projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified projects resource.

/*+ delete */
DELETE FROM azure.storage_mover.projects
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';