gcp.container.getAttachedInstallManifest

Provides access to available platform versions in a location for a given project.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var manifest = Gcp.Container.GetAttachedInstallManifest.Invoke(new()
    {
        Location = "us-west1",
        Project = "my-project",
        ClusterId = "test-cluster-1",
        PlatformVersion = "1.25.0-gke.1",
    });

    return new Dictionary<string, object?>
    {
        ["installManifest"] = manifest,
    };
});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/container"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		manifest, err := container.GetAttachedInstallManifest(ctx, &container.GetAttachedInstallManifestArgs{
			Location:        "us-west1",
			Project:         "my-project",
			ClusterId:       "test-cluster-1",
			PlatformVersion: "1.25.0-gke.1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("installManifest", manifest)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.container.ContainerFunctions;
import com.pulumi.gcp.container.inputs.GetAttachedInstallManifestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var manifest = ContainerFunctions.getAttachedInstallManifest(GetAttachedInstallManifestArgs.builder()
            .location("us-west1")
            .project("my-project")
            .clusterId("test-cluster-1")
            .platformVersion("1.25.0-gke.1")
            .build());

        ctx.export("installManifest", manifest.applyValue(getAttachedInstallManifestResult -> getAttachedInstallManifestResult));
    }
}
import pulumi
import pulumi_gcp as gcp

manifest = gcp.container.get_attached_install_manifest(location="us-west1",
    project="my-project",
    cluster_id="test-cluster-1",
    platform_version="1.25.0-gke.1")
pulumi.export("installManifest", manifest)
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const manifest = gcp.container.getAttachedInstallManifest({
    location: "us-west1",
    project: "my-project",
    clusterId: "test-cluster-1",
    platformVersion: "1.25.0-gke.1",
});
export const installManifest = manifest;
variables:
  manifest:
    fn::invoke:
      Function: gcp:container:getAttachedInstallManifest
      Arguments:
        location: us-west1
        project: my-project
        clusterId: test-cluster-1
        platformVersion: 1.25.0-gke.1
outputs:
  installManifest: ${manifest}

Using getAttachedInstallManifest

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAttachedInstallManifest(args: GetAttachedInstallManifestArgs, opts?: InvokeOptions): Promise<GetAttachedInstallManifestResult>
function getAttachedInstallManifestOutput(args: GetAttachedInstallManifestOutputArgs, opts?: InvokeOptions): Output<GetAttachedInstallManifestResult>
def get_attached_install_manifest(cluster_id: Optional[str] = None,
                                  location: Optional[str] = None,
                                  platform_version: Optional[str] = None,
                                  project: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetAttachedInstallManifestResult
def get_attached_install_manifest_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                  location: Optional[pulumi.Input[str]] = None,
                                  platform_version: Optional[pulumi.Input[str]] = None,
                                  project: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetAttachedInstallManifestResult]
func GetAttachedInstallManifest(ctx *Context, args *GetAttachedInstallManifestArgs, opts ...InvokeOption) (*GetAttachedInstallManifestResult, error)
func GetAttachedInstallManifestOutput(ctx *Context, args *GetAttachedInstallManifestOutputArgs, opts ...InvokeOption) GetAttachedInstallManifestResultOutput

> Note: This function is named GetAttachedInstallManifest in the Go SDK.

public static class GetAttachedInstallManifest 
{
    public static Task<GetAttachedInstallManifestResult> InvokeAsync(GetAttachedInstallManifestArgs args, InvokeOptions? opts = null)
    public static Output<GetAttachedInstallManifestResult> Invoke(GetAttachedInstallManifestInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAttachedInstallManifestResult> getAttachedInstallManifest(GetAttachedInstallManifestArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: gcp:container/getAttachedInstallManifest:getAttachedInstallManifest
  arguments:
    # arguments dictionary

The following arguments are supported:

ClusterId string

The name that will be used when creating the attached cluster resource.

Location string

The location to list versions for.

PlatformVersion string

The platform version for the cluster. A list of valid values can be retrieved using the gcp.container.getAttachedVersions data source.

Project string

ID of the project to list available platform versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

ClusterId string

The name that will be used when creating the attached cluster resource.

Location string

The location to list versions for.

PlatformVersion string

The platform version for the cluster. A list of valid values can be retrieved using the gcp.container.getAttachedVersions data source.

Project string

ID of the project to list available platform versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

clusterId String

The name that will be used when creating the attached cluster resource.

location String

The location to list versions for.

platformVersion String

The platform version for the cluster. A list of valid values can be retrieved using the gcp.container.getAttachedVersions data source.

project String

ID of the project to list available platform versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

clusterId string

The name that will be used when creating the attached cluster resource.

location string

The location to list versions for.

platformVersion string

The platform version for the cluster. A list of valid values can be retrieved using the gcp.container.getAttachedVersions data source.

project string

ID of the project to list available platform versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

cluster_id str

The name that will be used when creating the attached cluster resource.

location str

The location to list versions for.

platform_version str

The platform version for the cluster. A list of valid values can be retrieved using the gcp.container.getAttachedVersions data source.

project str

ID of the project to list available platform versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

clusterId String

The name that will be used when creating the attached cluster resource.

location String

The location to list versions for.

platformVersion String

The platform version for the cluster. A list of valid values can be retrieved using the gcp.container.getAttachedVersions data source.

project String

ID of the project to list available platform versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

getAttachedInstallManifest Result

The following output properties are available:

ClusterId string
Id string

The provider-assigned unique ID for this managed resource.

Location string
Manifest string

A string with the YAML manifest that needs to be applied to the cluster.

PlatformVersion string
Project string
ClusterId string
Id string

The provider-assigned unique ID for this managed resource.

Location string
Manifest string

A string with the YAML manifest that needs to be applied to the cluster.

PlatformVersion string
Project string
clusterId String
id String

The provider-assigned unique ID for this managed resource.

location String
manifest String

A string with the YAML manifest that needs to be applied to the cluster.

platformVersion String
project String
clusterId string
id string

The provider-assigned unique ID for this managed resource.

location string
manifest string

A string with the YAML manifest that needs to be applied to the cluster.

platformVersion string
project string
cluster_id str
id str

The provider-assigned unique ID for this managed resource.

location str
manifest str

A string with the YAML manifest that needs to be applied to the cluster.

platform_version str
project str
clusterId String
id String

The provider-assigned unique ID for this managed resource.

location String
manifest String

A string with the YAML manifest that needs to be applied to the cluster.

platformVersion String
project String

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.