Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure.data_migration.projects

Fields

NameDatatypeDescription
idtextfield from the properties object
nametextfield from the properties object
azure_authentication_infotextfield from the properties object
creation_timetextfield from the properties object
databases_infotextfield from the properties object
etagtextHTTP strong entity tag value. This is ignored if submitted.
groupNametextfield from the properties object
locationtextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
serviceNametextfield from the properties object
source_connection_infotextfield from the properties object
source_platformtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
target_connection_infotextfield from the properties object
target_platformtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupName, projectName, serviceName, subscriptionIdThe project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.
listSELECTgroupName, serviceName, subscriptionIdThe project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.
create_or_updateINSERTgroupName, projectName, serviceName, subscriptionIdThe project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.
deleteDELETEgroupName, projectName, serviceName, subscriptionIdThe project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.
updateUPDATEgroupName, projectName, serviceName, subscriptionIdThe project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.

SELECT examples

The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

SELECT
id,
name,
azure_authentication_info,
creation_time,
databases_info,
etag,
groupName,
location,
projectName,
provisioning_state,
serviceName,
source_connection_info,
source_platform,
subscriptionId,
system_data,
tags,
target_connection_info,
target_platform,
type
FROM azure.data_migration.vw_projects
WHERE groupName = '{{ groupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_migration.projects (
groupName,
projectName,
serviceName,
subscriptionId,
properties,
etag,
location,
tags
)
SELECT
'{{ groupName }}',
'{{ projectName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ etag }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a projects resource.

/*+ update */
UPDATE azure.data_migration.projects
SET
properties = '{{ properties }}',
etag = '{{ etag }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
groupName = '{{ groupName }}'
AND projectName = '{{ projectName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified projects resource.

/*+ delete */
DELETE FROM azure.data_migration.projects
WHERE groupName = '{{ groupName }}'
AND projectName = '{{ projectName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';