Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure.data_migration.projects

Fields

The following fields are returned by SELECT queries:

A project resource

NameDatatypeDescription
idstring
namestring
etagstringHTTP strong entity tag value. This is ignored if submitted.
locationstring
propertiesobjectProject properties
systemDataobject
tagsobject
typestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectThe project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.
listselectsubscriptionId, groupName, serviceNameapi-versionThe 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_updateinsertThe project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.
updateupdateThe project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.
deletedeletedeleteRunningTasksThe project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

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.

NameDatatypeDescription
groupNamestringName of the resource group
serviceNamestringName of the service
subscriptionIdstringSubscription ID that identifies an Azure subscription.
api-versionstringVersion of the API
deleteRunningTasksbooleanDelete the resource even if it contains running tasks

SELECT examples

The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

SELECT
id,
name,
etag,
location,
properties,
systemData,
tags,
type
FROM azure.data_migration.projects
;

INSERT examples

The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

INSERT INTO azure.data_migration.projects (
data__properties,
data__etag,
data__location,
data__tags
)
SELECT
'{{ properties }}',
'{{ etag }}',
'{{ location }}',
'{{ tags }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.

UPDATE azure.data_migration.projects
SET
data__properties = '{{ properties }}',
data__etag = '{{ etag }}',
data__location = '{{ location }}',
data__tags = '{{ tags }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

DELETE examples

The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

DELETE FROM azure.data_migration.projects
WHERE deleteRunningTasks = '{{ deleteRunningTasks }}'
;