1. Packages
  2. Castai Provider
  3. API Docs
  4. GkeClusterId
castai 7.44.1 published on Monday, Mar 31, 2025 by castai

castai.GkeClusterId

Explore with Pulumi AI

GKE cluster resource allows connecting an existing GKE cluster to CAST AI.

Create GkeClusterId Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GkeClusterId(name: string, args: GkeClusterIdArgs, opts?: CustomResourceOptions);
@overload
def GkeClusterId(resource_name: str,
                 args: GkeClusterIdArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def GkeClusterId(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 location: Optional[str] = None,
                 project_id: Optional[str] = None,
                 cast_service_account: Optional[str] = None,
                 client_service_account: Optional[str] = None,
                 gke_cluster_id_id: Optional[str] = None,
                 name: Optional[str] = None,
                 timeouts: Optional[GkeClusterIdTimeoutsArgs] = None)
func NewGkeClusterId(ctx *Context, name string, args GkeClusterIdArgs, opts ...ResourceOption) (*GkeClusterId, error)
public GkeClusterId(string name, GkeClusterIdArgs args, CustomResourceOptions? opts = null)
public GkeClusterId(String name, GkeClusterIdArgs args)
public GkeClusterId(String name, GkeClusterIdArgs args, CustomResourceOptions options)
type: castai:GkeClusterId
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GkeClusterIdArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GkeClusterIdArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GkeClusterIdArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GkeClusterIdArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GkeClusterIdArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var gkeClusterIdResource = new Castai.GkeClusterId("gkeClusterIdResource", new()
{
    Location = "string",
    ProjectId = "string",
    CastServiceAccount = "string",
    ClientServiceAccount = "string",
    GkeClusterIdId = "string",
    Name = "string",
    Timeouts = new Castai.Inputs.GkeClusterIdTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
});
Copy
example, err := castai.NewGkeClusterId(ctx, "gkeClusterIdResource", &castai.GkeClusterIdArgs{
Location: pulumi.String("string"),
ProjectId: pulumi.String("string"),
CastServiceAccount: pulumi.String("string"),
ClientServiceAccount: pulumi.String("string"),
GkeClusterIdId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &.GkeClusterIdTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
var gkeClusterIdResource = new GkeClusterId("gkeClusterIdResource", GkeClusterIdArgs.builder()
    .location("string")
    .projectId("string")
    .castServiceAccount("string")
    .clientServiceAccount("string")
    .gkeClusterIdId("string")
    .name("string")
    .timeouts(GkeClusterIdTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
gke_cluster_id_resource = castai.GkeClusterId("gkeClusterIdResource",
    location="string",
    project_id="string",
    cast_service_account="string",
    client_service_account="string",
    gke_cluster_id_id="string",
    name="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    })
Copy
const gkeClusterIdResource = new castai.GkeClusterId("gkeClusterIdResource", {
    location: "string",
    projectId: "string",
    castServiceAccount: "string",
    clientServiceAccount: "string",
    gkeClusterIdId: "string",
    name: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: castai:GkeClusterId
properties:
    castServiceAccount: string
    clientServiceAccount: string
    gkeClusterIdId: string
    location: string
    name: string
    projectId: string
    timeouts:
        create: string
        delete: string
        update: string
Copy

GkeClusterId Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The GkeClusterId resource accepts the following input properties:

Location This property is required. string
GCP cluster zone in case of zonal or region in case of regional cluster
ProjectId This property is required. string
GCP project id
CastServiceAccount string
Service account email in cast project
ClientServiceAccount string
Service account email in client project
GkeClusterIdId string
The ID of this resource.
Name string
GKE cluster name
Timeouts GkeClusterIdTimeouts
Location This property is required. string
GCP cluster zone in case of zonal or region in case of regional cluster
ProjectId This property is required. string
GCP project id
CastServiceAccount string
Service account email in cast project
ClientServiceAccount string
Service account email in client project
GkeClusterIdId string
The ID of this resource.
Name string
GKE cluster name
Timeouts GkeClusterIdTimeoutsArgs
location This property is required. String
GCP cluster zone in case of zonal or region in case of regional cluster
projectId This property is required. String
GCP project id
castServiceAccount String
Service account email in cast project
clientServiceAccount String
Service account email in client project
gkeClusterIdId String
The ID of this resource.
name String
GKE cluster name
timeouts GkeClusterIdTimeouts
location This property is required. string
GCP cluster zone in case of zonal or region in case of regional cluster
projectId This property is required. string
GCP project id
castServiceAccount string
Service account email in cast project
clientServiceAccount string
Service account email in client project
gkeClusterIdId string
The ID of this resource.
name string
GKE cluster name
timeouts GkeClusterIdTimeouts
location This property is required. str
GCP cluster zone in case of zonal or region in case of regional cluster
project_id This property is required. str
GCP project id
cast_service_account str
Service account email in cast project
client_service_account str
Service account email in client project
gke_cluster_id_id str
The ID of this resource.
name str
GKE cluster name
timeouts GkeClusterIdTimeoutsArgs
location This property is required. String
GCP cluster zone in case of zonal or region in case of regional cluster
projectId This property is required. String
GCP project id
castServiceAccount String
Service account email in cast project
clientServiceAccount String
Service account email in client project
gkeClusterIdId String
The ID of this resource.
name String
GKE cluster name
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the GkeClusterId resource produces the following output properties:

ClusterToken string
CAST.AI agent cluster token
Id string
The provider-assigned unique ID for this managed resource.
ClusterToken string
CAST.AI agent cluster token
Id string
The provider-assigned unique ID for this managed resource.
clusterToken String
CAST.AI agent cluster token
id String
The provider-assigned unique ID for this managed resource.
clusterToken string
CAST.AI agent cluster token
id string
The provider-assigned unique ID for this managed resource.
cluster_token str
CAST.AI agent cluster token
id str
The provider-assigned unique ID for this managed resource.
clusterToken String
CAST.AI agent cluster token
id String
The provider-assigned unique ID for this managed resource.

Look up Existing GkeClusterId Resource

Get an existing GkeClusterId resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GkeClusterIdState, opts?: CustomResourceOptions): GkeClusterId
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cast_service_account: Optional[str] = None,
        client_service_account: Optional[str] = None,
        cluster_token: Optional[str] = None,
        gke_cluster_id_id: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None,
        timeouts: Optional[GkeClusterIdTimeoutsArgs] = None) -> GkeClusterId
func GetGkeClusterId(ctx *Context, name string, id IDInput, state *GkeClusterIdState, opts ...ResourceOption) (*GkeClusterId, error)
public static GkeClusterId Get(string name, Input<string> id, GkeClusterIdState? state, CustomResourceOptions? opts = null)
public static GkeClusterId get(String name, Output<String> id, GkeClusterIdState state, CustomResourceOptions options)
resources:  _:    type: castai:GkeClusterId    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CastServiceAccount string
Service account email in cast project
ClientServiceAccount string
Service account email in client project
ClusterToken string
CAST.AI agent cluster token
GkeClusterIdId string
The ID of this resource.
Location string
GCP cluster zone in case of zonal or region in case of regional cluster
Name string
GKE cluster name
ProjectId string
GCP project id
Timeouts GkeClusterIdTimeouts
CastServiceAccount string
Service account email in cast project
ClientServiceAccount string
Service account email in client project
ClusterToken string
CAST.AI agent cluster token
GkeClusterIdId string
The ID of this resource.
Location string
GCP cluster zone in case of zonal or region in case of regional cluster
Name string
GKE cluster name
ProjectId string
GCP project id
Timeouts GkeClusterIdTimeoutsArgs
castServiceAccount String
Service account email in cast project
clientServiceAccount String
Service account email in client project
clusterToken String
CAST.AI agent cluster token
gkeClusterIdId String
The ID of this resource.
location String
GCP cluster zone in case of zonal or region in case of regional cluster
name String
GKE cluster name
projectId String
GCP project id
timeouts GkeClusterIdTimeouts
castServiceAccount string
Service account email in cast project
clientServiceAccount string
Service account email in client project
clusterToken string
CAST.AI agent cluster token
gkeClusterIdId string
The ID of this resource.
location string
GCP cluster zone in case of zonal or region in case of regional cluster
name string
GKE cluster name
projectId string
GCP project id
timeouts GkeClusterIdTimeouts
cast_service_account str
Service account email in cast project
client_service_account str
Service account email in client project
cluster_token str
CAST.AI agent cluster token
gke_cluster_id_id str
The ID of this resource.
location str
GCP cluster zone in case of zonal or region in case of regional cluster
name str
GKE cluster name
project_id str
GCP project id
timeouts GkeClusterIdTimeoutsArgs
castServiceAccount String
Service account email in cast project
clientServiceAccount String
Service account email in client project
clusterToken String
CAST.AI agent cluster token
gkeClusterIdId String
The ID of this resource.
location String
GCP cluster zone in case of zonal or region in case of regional cluster
name String
GKE cluster name
projectId String
GCP project id
timeouts Property Map

Supporting Types

GkeClusterIdTimeouts
, GkeClusterIdTimeoutsArgs

Create string
Delete string
Update string
Create string
Delete string
Update string
create String
delete String
update String
create string
delete string
update string
create str
delete str
update str
create String
delete String
update String

Package Details

Repository
castai castai/terraform-provider-castai
License
Notes
This Pulumi package is based on the castai Terraform Provider.