castai 7.44.0 published on Friday, Mar 21, 2025 by castai
castai.getGkeUserPolicies
Explore with Pulumi AI
Returns list of GCP policies needed for onboarding a cluster into CAST AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as castai from "@pulumi/castai";
const gke = castai.getGkeUserPolicies({});
import pulumi
import pulumi_castai as castai
gke = castai.get_gke_user_policies()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/castai/v7/castai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := castai.GetGkeUserPolicies(ctx, &castai.GetGkeUserPoliciesArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Castai = Pulumi.Castai;
return await Deployment.RunAsync(() =>
{
var gke = Castai.GetGkeUserPolicies.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.castai.CastaiFunctions;
import com.pulumi.castai.inputs.GetGkeUserPoliciesArgs;
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 gke = CastaiFunctions.getGkeUserPolicies();
}
}
variables:
gke:
fn::invoke:
function: castai:getGkeUserPolicies
arguments: {}
Using getGkeUserPolicies
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 getGkeUserPolicies(args: GetGkeUserPoliciesArgs, opts?: InvokeOptions): Promise<GetGkeUserPoliciesResult>
function getGkeUserPoliciesOutput(args: GetGkeUserPoliciesOutputArgs, opts?: InvokeOptions): Output<GetGkeUserPoliciesResult>
def get_gke_user_policies(features: Optional[Mapping[str, bool]] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGkeUserPoliciesResult
def get_gke_user_policies_output(features: Optional[pulumi.Input[Mapping[str, pulumi.Input[bool]]]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGkeUserPoliciesResult]
func GetGkeUserPolicies(ctx *Context, args *GetGkeUserPoliciesArgs, opts ...InvokeOption) (*GetGkeUserPoliciesResult, error)
func GetGkeUserPoliciesOutput(ctx *Context, args *GetGkeUserPoliciesOutputArgs, opts ...InvokeOption) GetGkeUserPoliciesResultOutput
> Note: This function is named GetGkeUserPolicies
in the Go SDK.
public static class GetGkeUserPolicies
{
public static Task<GetGkeUserPoliciesResult> InvokeAsync(GetGkeUserPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetGkeUserPoliciesResult> Invoke(GetGkeUserPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGkeUserPoliciesResult> getGkeUserPolicies(GetGkeUserPoliciesArgs args, InvokeOptions options)
public static Output<GetGkeUserPoliciesResult> getGkeUserPolicies(GetGkeUserPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: castai:index/getGkeUserPolicies:getGkeUserPolicies
arguments:
# arguments dictionary
The following arguments are supported:
getGkeUserPolicies Result
The following output properties are available:
Package Details
- Repository
- castai castai/terraform-provider-castai
- License
- Notes
- This Pulumi package is based on the
castai
Terraform Provider.