- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- AnalysisView
- MoveAnalysis
- MoveAnalysisResult
- MoveImpact
- Try it!
Analyze moving a resource to a specified destination without kicking off the actual move. The analysis is best effort depending on the user's permissions of viewing different hierarchical policies and configurations. The policies and configuration are subject to change before the actual resource migration takes place.
HTTP request
GET https://cloudasset.googleapis.com/v1/{resource=*/*}:analyzeMove
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
resource |
Required. Name of the resource to perform the analysis against. Only Google Cloud projects are supported as of today. Hence, this can only be a project ID (such as "projects/my-project-id") or a project number (such as "projects/12345"). |
Query parameters
Parameters | |
---|---|
destinationParent |
Required. Name of the Google Cloud folder or organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a folder number (such as "folders/123") or an organization number (such as "organizations/123"). |
view |
Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL. |
Request body
The request body must be empty.
Response body
The response message for resource move analysis.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"moveAnalysis": [
{
object ( |
Fields | |
---|---|
moveAnalysis[] |
The list of analyses returned from performing the intended resource move analysis. The analysis is grouped by different Google Cloud services. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
AnalysisView
View enum for supporting partial analysis responses.
Enums | |
---|---|
ANALYSIS_VIEW_UNSPECIFIED |
The default/unset value. The API will default to the FULL view. |
FULL |
Full analysis including all level of impacts of the specified resource move. |
BASIC |
Basic analysis only including blockers which will prevent the specified resource move at runtime. |
MoveAnalysis
A message to group the analysis information.
JSON representation |
---|
{ "displayName": string, // Union field |
Fields | |
---|---|
displayName |
The user friendly display name of the analysis. E.g. IAM, organization policy etc. |
Union field
|
|
analysis |
Analysis result of moving the target resource. |
error |
Description of error encountered when performing the analysis. |
MoveAnalysisResult
An analysis result including blockers and warnings.
JSON representation |
---|
{ "blockers": [ { object ( |
Fields | |
---|---|
blockers[] |
Blocking information that would prevent the target resource from moving to the specified destination at runtime. |
warnings[] |
Warning information indicating that moving the target resource to the specified destination might be unsafe. This can include important policy information and configuration changes, but will not block moves at runtime. |
MoveImpact
A message to group impacts of moving the target resource.
JSON representation |
---|
{ "detail": string } |
Fields | |
---|---|
detail |
User friendly impact detail in a free form message. |