get Attached Versions
Provides access to available platform versions in a location for a given project.
Example Usage
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.GetAttachedVersionsArgs;
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 uswest = ContainerFunctions.getAttachedVersions(GetAttachedVersionsArgs.builder()
.location("us-west1")
.project("my-project")
.build());
ctx.export("firstAvailableVersion", data.google_container_attached_versions().versions().valid_versions()[0]);
}
}
Content copied to clipboard
Return
A collection of values returned by getAttachedVersions.
Parameters
argument
A collection of arguments for invoking getAttachedVersions.
Return
A collection of values returned by getAttachedVersions.
Parameters
location
The location to list versions for.
project
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.
See also
suspend fun getAttachedVersions(argument: suspend GetAttachedVersionsPlainArgsBuilder.() -> Unit): GetAttachedVersionsResult
Return
A collection of values returned by getAttachedVersions.
Parameters
argument
Builder for com.pulumi.gcp.container.kotlin.inputs.GetAttachedVersionsPlainArgs.