sources
Creates, updates, deletes, gets or lists a sources
resource.
Overview
Name | sources |
Type | Resource |
Id | google.vmmigration.sources |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The Source name. |
description | string | User-provided description of the source. |
aws | object | AwsSourceDetails message describes a specific source details for the AWS source type. |
azure | object | AzureSourceDetails message describes a specific source details for the Azure source type. |
createTime | string | Output only. The create time timestamp. |
encryption | object | Encryption message describes the details of the applied encryption. |
labels | object | The labels of the source. |
updateTime | string | Output only. The update time timestamp. |
vmware | object | VmwareSourceDetails message describes a specific source details for the vmware source type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, sourcesId | Gets details of a single Source. |
list | SELECT | locationsId, projectsId | Lists Sources in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new Source in a given project and location. |
delete | DELETE | locationsId, projectsId, sourcesId | Deletes a single Source. |
patch | UPDATE | locationsId, projectsId, sourcesId | Updates the parameters of a single Source. |
SELECT
examples
Lists Sources in a given project and location.
SELECT
name,
description,
aws,
azure,
createTime,
encryption,
labels,
updateTime,
vmware
FROM google.vmmigration.sources
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new sources
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmmigration.sources (
locationsId,
projectsId,
vmware,
aws,
azure,
labels,
description,
encryption
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ vmware }}',
'{{ aws }}',
'{{ azure }}',
'{{ labels }}',
'{{ description }}',
'{{ encryption }}'
;
- name: your_resource_model_name
props:
- name: vmware
value:
- name: username
value: string
- name: password
value: string
- name: vcenterIp
value: string
- name: thumbprint
value: string
- name: resolvedVcenterHost
value: string
- name: aws
value:
- name: accessKeyCreds
value:
- name: accessKeyId
value: string
- name: secretAccessKey
value: string
- name: sessionToken
value: string
- name: awsRegion
value: string
- name: state
value: string
- name: error
value:
- name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: inventoryTagList
value:
- - name: key
value: string
- name: value
value: string
- name: inventorySecurityGroupNames
value:
- string
- name: migrationResourcesUserTags
value: object
- name: publicIp
value: string
- name: azure
value:
- name: clientSecretCreds
value:
- name: tenantId
value: string
- name: clientId
value: string
- name: clientSecret
value: string
- name: subscriptionId
value: string
- name: azureLocation
value: string
- name: state
value: string
- name: migrationResourcesUserTags
value: object
- name: resourceGroupId
value: string
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: description
value: string
- name: encryption
value:
- name: kmsKey
value: string
UPDATE
example
Updates a sources
resource.
/*+ update */
UPDATE google.vmmigration.sources
SET
vmware = '{{ vmware }}',
aws = '{{ aws }}',
azure = '{{ azure }}',
labels = '{{ labels }}',
description = '{{ description }}',
encryption = '{{ encryption }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sourcesId = '{{ sourcesId }}';
DELETE
example
Deletes the specified sources
resource.
/*+ delete */
DELETE FROM google.vmmigration.sources
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sourcesId = '{{ sourcesId }}';