assets_export_jobs
Creates, updates, deletes, gets or lists an assets_export_jobs resource.
Overview
| Name | assets_export_jobs |
| Type | Resource |
| Id | google.migrationcenter.assets_export_jobs |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. Identifier. Resource name. |
condition | object | Optional. Conditions for selecting assets to export. (id: AssetsExportJobExportCondition) |
createTime | string (google-datetime) | Output only. Resource creation time. |
inventory | object | Export asset inventory details. (id: AssetsExportJobInventory) |
labels | object | Optional. Labels as key value pairs. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. |
networkDependencies | object | Export data regarding asset network dependencies. (id: AssetsExportJobNetworkDependencies) |
performanceData | object | Export asset with performance data. (id: AssetsExportJobPerformanceData) |
recentExecutions | array | Output only. Recent non expired executions of the job. |
showHidden | boolean | Optional. When this value is set to 'true' the response will include all assets, including those that are hidden. |
signedUriDestination | object | Export to Cloud Storage files downloadable using signed URIs. (id: SignedUriDestination) |
updateTime | string (google-datetime) | Output only. Resource update time. |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. Identifier. Resource name. |
condition | object | Optional. Conditions for selecting assets to export. (id: AssetsExportJobExportCondition) |
createTime | string (google-datetime) | Output only. Resource creation time. |
inventory | object | Export asset inventory details. (id: AssetsExportJobInventory) |
labels | object | Optional. Labels as key value pairs. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. |
networkDependencies | object | Export data regarding asset network dependencies. (id: AssetsExportJobNetworkDependencies) |
performanceData | object | Export asset with performance data. (id: AssetsExportJobPerformanceData) |
recentExecutions | array | Output only. Recent non expired executions of the job. |
showHidden | boolean | Optional. When this value is set to 'true' the response will include all assets, including those that are hidden. |
signedUriDestination | object | Export to Cloud Storage files downloadable using signed URIs. (id: SignedUriDestination) |
updateTime | string (google-datetime) | Output only. Resource update time. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, assetsExportJobsId | Gets the details of an assets export job. | |
list | select | projectsId, locationsId | pageToken, pageSize | Lists all the assets export jobs in a given project and location. |
create | insert | projectsId, locationsId | assetsExportJobId, requestId | Creates a new assets export job. |
delete | delete | projectsId, locationsId, assetsExportJobsId | Deletes an assets export job. | |
run | exec | projectsId, locationsId, assetsExportJobsId | Runs an assets export job, returning an AssetsExportJobExecution. |
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 |
|---|---|---|
assetsExportJobsId | string | |
locationsId | string | |
projectsId | string | |
assetsExportJobId | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string |
SELECT examples
- get
- list
Gets the details of an assets export job.
SELECT
name,
condition,
createTime,
inventory,
labels,
networkDependencies,
performanceData,
recentExecutions,
showHidden,
signedUriDestination,
updateTime
FROM google.migrationcenter.assets_export_jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND assetsExportJobsId = '{{ assetsExportJobsId }}' -- required
;
Lists all the assets export jobs in a given project and location.
SELECT
name,
condition,
createTime,
inventory,
labels,
networkDependencies,
performanceData,
recentExecutions,
showHidden,
signedUriDestination,
updateTime
FROM google.migrationcenter.assets_export_jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;
INSERT examples
- create
- Manifest
Creates a new assets export job.
INSERT INTO google.migrationcenter.assets_export_jobs (
data__networkDependencies,
data__inventory,
data__showHidden,
data__condition,
data__signedUriDestination,
data__labels,
data__performanceData,
projectsId,
locationsId,
assetsExportJobId,
requestId
)
SELECT
'{{ networkDependencies }}',
'{{ inventory }}',
{{ showHidden }},
'{{ condition }}',
'{{ signedUriDestination }}',
'{{ labels }}',
'{{ performanceData }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ assetsExportJobId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: assets_export_jobs
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the assets_export_jobs resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the assets_export_jobs resource.
- name: networkDependencies
value: "{{ networkDependencies }}"
description: |
Export data regarding asset network dependencies.
- name: inventory
value: "{{ inventory }}"
description: |
Export asset inventory details.
- name: showHidden
value: {{ showHidden }}
description: |
Optional. When this value is set to 'true' the response will include all assets, including those that are hidden.
- name: condition
description: |
Optional. Conditions for selecting assets to export.
value:
filter: "{{ filter }}"
- name: signedUriDestination
description: |
Export to Cloud Storage files downloadable using signed URIs.
value:
fileFormat: "{{ fileFormat }}"
- name: labels
value: "{{ labels }}"
description: |
Optional. Labels as key value pairs. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
- name: performanceData
description: |
Export asset with performance data.
value:
maxDays: {{ maxDays }}
- name: assetsExportJobId
value: "{{ assetsExportJobId }}"
- name: requestId
value: "{{ requestId }}"
DELETE examples
- delete
Deletes an assets export job.
DELETE FROM google.migrationcenter.assets_export_jobs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND assetsExportJobsId = '{{ assetsExportJobsId }}' --required
;
Lifecycle Methods
- run
Runs an assets export job, returning an AssetsExportJobExecution.
EXEC google.migrationcenter.assets_export_jobs.run
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@assetsExportJobsId='{{ assetsExportJobsId }}' --required
@@json=
'{
"requestId": "{{ requestId }}"
}'
;