Method: projects.locations.spaces.applications.generate

Generates Terraform files for an application.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the application.

Request body

The request body contains data with the following structure:

JSON representation
{
 "iacFormat": enum (IACFormat ),
 "gcsUri": string,
 "artifactLocation": {
 object (ArtifactLocation )
 }
}
Fields
iacFormat

enum (IACFormat )

Optional. The IaC format to generate.

gcsUri
(deprecated)

string

Optional. The Cloud Storage URI to write the generated IaC to. DEPRECATED: Use the 'artifactLocation' field instead.

artifactLocation

object (ArtifactLocation )

Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository.

Response body

Response message for applications.generate method.

If successful, the response body contains data with the following structure:

JSON representation
{
 "gcsUri": string,
 "artifactLocation": {
 object (ArtifactLocation )
 }
}
Fields
gcsUri
(deprecated)

string

Output only. The Cloud Storage URI of the generated IaC. DEPRECATED: Use the 'artifactLocation' field instead.

artifactLocation

object (ArtifactLocation )

Output only. The destination where the generated IaC was written.

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.

IACFormat

The IaC format to generate.

Enums
IAC_FORMAT_UNSPECIFIED IaC format is unspecified.
TERRAFORM IaC format is Terraform.
HELM IaC format is HELM.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年09月10日 UTC.