Method: organizations.locations.workloads.organizations.locations.workloads.analyzeWorkloadMove

Stay organized with collections Save and categorize content based on your preferences.

Analyze if the source Assured Workloads can be moved to the target Assured Workload

HTTP request

GET https://{endpoint}/v1beta1/{source=organizations/*/locations/*/workloads/*}/{target=organizations/*/locations/*/workloads/*}:analyzeWorkloadMove

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
target

string

Required. The resource ID of the folder-based destination workload. This workload is where the source project will hypothetically be moved to. Specify the workload's relative resource name, formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-2"

source

string

The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-1"

Query parameters

Parameters
project

string

The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project number, or "projects/my-project-123" when specifying a project ID.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of AnalyzeWorkloadMoveResponse.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the target resource:

  • assuredworkloads.workload.get

For more information, see the IAM documentation.