outscale 1.3.0-alpha.1 published on Tuesday, Sep 30, 2025 by outscale
outscale.getOksKubeconfig
outscale 1.3.0-alpha.1 published on Tuesday, Sep 30, 2025 by outscale
Provides information about a kubeconfig file.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const config = outscale.getOksKubeconfig({
clusterId: "00000000-0000-4000-8000-000000000000",
});
import pulumi
import pulumi_outscale as outscale
config = outscale.get_oks_kubeconfig(cluster_id="00000000-0000-4000-8000-000000000000")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := outscale.GetOksKubeconfig(ctx, &outscale.GetOksKubeconfigArgs{
ClusterId: "00000000-0000-4000-8000-000000000000",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() =>
{
var config = Outscale.GetOksKubeconfig.Invoke(new()
{
ClusterId = "00000000-0000-4000-8000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetOksKubeconfigArgs;
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 config = OutscaleFunctions.getOksKubeconfig(GetOksKubeconfigArgs.builder()
.clusterId("00000000-0000-4000-8000-000000000000")
.build());
}
}
variables:
config:
fn::invoke:
function: outscale:getOksKubeconfig
arguments:
clusterId: 00000000-0000-4000-8000-000000000000
Using getOksKubeconfig
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 getOksKubeconfig(args: GetOksKubeconfigArgs, opts?: InvokeOptions): Promise<GetOksKubeconfigResult>
function getOksKubeconfigOutput(args: GetOksKubeconfigOutputArgs, opts?: InvokeOptions): Output<GetOksKubeconfigResult>
def get_oks_kubeconfig(cluster_id: Optional[str] = None,
group: Optional[str] = None,
ttl: Optional[str] = None,
user: Optional[str] = None,
x_encrypt_nacl: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOksKubeconfigResult
def get_oks_kubeconfig_output(cluster_id: Optional[pulumi.Input[str]] = None,
group: Optional[pulumi.Input[str]] = None,
ttl: Optional[pulumi.Input[str]] = None,
user: Optional[pulumi.Input[str]] = None,
x_encrypt_nacl: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOksKubeconfigResult]
func GetOksKubeconfig(ctx *Context, args *GetOksKubeconfigArgs, opts ...InvokeOption) (*GetOksKubeconfigResult, error)
func GetOksKubeconfigOutput(ctx *Context, args *GetOksKubeconfigOutputArgs, opts ...InvokeOption) GetOksKubeconfigResultOutput
> Note: This function is named GetOksKubeconfig
in the Go SDK.
public static class GetOksKubeconfig
{
public static Task<GetOksKubeconfigResult> InvokeAsync(GetOksKubeconfigArgs args, InvokeOptions? opts = null)
public static Output<GetOksKubeconfigResult> Invoke(GetOksKubeconfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOksKubeconfigResult> getOksKubeconfig(GetOksKubeconfigArgs args, InvokeOptions options)
public static Output<GetOksKubeconfigResult> getOksKubeconfig(GetOksKubeconfigArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getOksKubeconfig:getOksKubeconfig
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The ID of the cluster.
- Group string
- The group of the kubeconfig file.
- Ttl string
- The time to live (TTL) of the kubeconfig file.
x-encrypt-nacl
- (Optional) The header to encrypt the kubeconfig file.
- User string
- The user of the kubeconfig file.
- XEncrypt
Nacl string
- Cluster
Id string - The ID of the cluster.
- Group string
- The group of the kubeconfig file.
- Ttl string
- The time to live (TTL) of the kubeconfig file.
x-encrypt-nacl
- (Optional) The header to encrypt the kubeconfig file.
- User string
- The user of the kubeconfig file.
- XEncrypt
Nacl string
- cluster
Id String - The ID of the cluster.
- group String
- The group of the kubeconfig file.
- ttl String
- The time to live (TTL) of the kubeconfig file.
x-encrypt-nacl
- (Optional) The header to encrypt the kubeconfig file.
- user String
- The user of the kubeconfig file.
- x
Encrypt StringNacl
- cluster
Id string - The ID of the cluster.
- group string
- The group of the kubeconfig file.
- ttl string
- The time to live (TTL) of the kubeconfig file.
x-encrypt-nacl
- (Optional) The header to encrypt the kubeconfig file.
- user string
- The user of the kubeconfig file.
- x
Encrypt stringNacl
- cluster_
id str - The ID of the cluster.
- group str
- The group of the kubeconfig file.
- ttl str
- The time to live (TTL) of the kubeconfig file.
x-encrypt-nacl
- (Optional) The header to encrypt the kubeconfig file.
- user str
- The user of the kubeconfig file.
- x_
encrypt_ strnacl
- cluster
Id String - The ID of the cluster.
- group String
- The group of the kubeconfig file.
- ttl String
- The time to live (TTL) of the kubeconfig file.
x-encrypt-nacl
- (Optional) The header to encrypt the kubeconfig file.
- user String
- The user of the kubeconfig file.
- x
Encrypt StringNacl
getOksKubeconfig Result
The following output properties are available:
- Cluster
Id string - Id string
- Kubeconfig string
- A file containing access configuration to the cluster.
- Request
Id string - Group string
- Ttl string
- User string
- XEncrypt
Nacl string
- Cluster
Id string - Id string
- Kubeconfig string
- A file containing access configuration to the cluster.
- Request
Id string - Group string
- Ttl string
- User string
- XEncrypt
Nacl string
- cluster
Id String - id String
- kubeconfig String
- A file containing access configuration to the cluster.
- request
Id String - group String
- ttl String
- user String
- x
Encrypt StringNacl
- cluster
Id string - id string
- kubeconfig string
- A file containing access configuration to the cluster.
- request
Id string - group string
- ttl string
- user string
- x
Encrypt stringNacl
- cluster_
id str - id str
- kubeconfig str
- A file containing access configuration to the cluster.
- request_
id str - group str
- ttl str
- user str
- x_
encrypt_ strnacl
- cluster
Id String - id String
- kubeconfig String
- A file containing access configuration to the cluster.
- request
Id String - group String
- ttl String
- user String
- x
Encrypt StringNacl
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.
outscale 1.3.0-alpha.1 published on Tuesday, Sep 30, 2025 by outscale