Method: projects.locations.spaces.applications.preview

Previews deployment of an application.

HTTP request

POST https://designcenter.googleapis.com/v1alpha/{name=projects/*/locations/*/spaces/*/applications/*}:preview

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

Request body

The request body contains data with the following structure:

JSON representation
{
  "workerPool": string,
  "serviceAccount": string
}
Fields
workerPool

string

Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is unspecified, the default Cloud Build worker pool will be used. If omitted and application resource ref provided has workerPool defined, that worker pool is used.

serviceAccount

string

Optional. The email address of the service account to use for this preview operation.

  • If provided, this service account will be used to execute the preview process, taking precedence over any serviceAccount specified on the Application resource.
  • The caller must have the 'iam.serviceAccounts.actAs' permission on this service account.
  • If this field is omitted, the system will use the 'serviceAccount' defined within the Application resource.
  • We recommend that you provide a service account here or on the Application resource. If you don't provide a service account, the preview will fail. Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}

Response body

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

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 name resource:

  • designcenter.applications.get

For more information, see the IAM documentation.