getInstanceTemplate

Note: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. Get information about a VM instance template resource within GCE. For more information see the official documentation and API.

Return

A collection of values returned by getInstanceTemplate.

Parameters

argument

A collection of arguments for invoking getInstanceTemplate.


suspend fun getInstanceTemplate(filter: String? = null, mostRecent: Boolean? = null, name: String? = null, project: String? = null, selfLinkUnique: String? = null): GetInstanceTemplateResult

Return

A collection of values returned by getInstanceTemplate.

Parameters

filter

A filter to retrieve the instance templates. See API filter parameter documentation for reference. If multiple instance templates match, either adjust the filter or specify most_recent. One of name, filter or self_link_unique must be provided.

mostRecent

If filter is provided, ensures the most recent template is returned when multiple instance templates match. One of name, filter or self_link_unique must be provided.

name

The name of the instance template. One of name, filter or self_link_unique must be provided.

project

The ID of the project in which the resource belongs. If project is not provided, the provider project is used.

selfLinkUnique

The self_link_unique URI of the instance template. One of name, filter or self_link_unique must be provided.

See also


Return

A collection of values returned by getInstanceTemplate.

Parameters

argument

Builder for com.pulumi.gcp.compute.kotlin.inputs.GetInstanceTemplatePlainArgs.

See also