Method: projects.locations.assets.batchDelete

Deletes list of Assets.

HTTP request

POST https://migrationcenter.googleapis.com/v1alpha1/{parent=projects/*/locations/*}/assets:batchDelete

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Parent value for batch asset delete.

Request body

The request body contains data with the following structure:

JSON representation
{
  "names": [
    string
  ],
  "allowMissing": boolean,
  "cascadingRules": [
    {
      object (CascadingRule)
    }
  ]
}
Fields
names[]

string

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

allowMissing

boolean

Optional. When this value is set to true the request is a no-op for non-existing assets. See https://google.aip.dev/135#delete-if-existing for additional details. Default value is false.

cascadingRules[]

object (CascadingRule)

Optional. Optional cascading rules for deleting related assets.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

CascadingRule

Specifies cascading rules for traversing relations.

JSON representation
{

  // Union field rule can be only one of the following:
  "cascadeLogicalDbs": {
    object (CascadeLogicalDBsRule)
  }
  // End of list of possible types for union field rule.
}
Fields

Union field rule.

rule can be only one of the following:

cascadeLogicalDbs

object (CascadeLogicalDBsRule)

Cascading rule for related logical DBs.

CascadeLogicalDBsRule

This type has no fields.

Cascading rule for related logical DBs.