Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.container.getAttachedInstallManifest
Explore with Pulumi AI
Provides access to available platform versions in a location for a given project.
Example Usage
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;
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)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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
})
}
using System.Collections.Generic;
using System.Linq;
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 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));
}
}
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:
- Cluster
Id string - The name that will be used when creating the attached cluster resource.
- Location string
- The location to list versions for.
- Platform
Version 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 string - The name that will be used when creating the attached cluster resource.
- Location string
- The location to list versions for.
- Platform
Version 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 String - The name that will be used when creating the attached cluster resource.
- location String
- The location to list versions for.
- platform
Version 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 string - The name that will be used when creating the attached cluster resource.
- location string
- The location to list versions for.
- platform
Version 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.
- cluster
Id String - The name that will be used when creating the attached cluster resource.
- location String
- The location to list versions for.
- platform
Version 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:
- 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
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.