Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg
nutanix.getKarbonClusterSsh
Explore with Pulumi AI
Describes the SSH config from a Karbon Cluster
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const sshbyid = nutanix.getKarbonClusterSsh({
karbonClusterId: "<YOUR-CLUSTER-ID>",
});
const sshbyname = nutanix.getKarbonClusterSsh({
karbonClusterName: "<YOUR-CLUSTER-NAME>",
});
import pulumi
import pulumi_nutanix as nutanix
sshbyid = nutanix.get_karbon_cluster_ssh(karbon_cluster_id="<YOUR-CLUSTER-ID>")
sshbyname = nutanix.get_karbon_cluster_ssh(karbon_cluster_name="<YOUR-CLUSTER-NAME>")
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nutanix.GetKarbonClusterSsh(ctx, &nutanix.GetKarbonClusterSshArgs{
KarbonClusterId: pulumi.StringRef("<YOUR-CLUSTER-ID>"),
}, nil)
if err != nil {
return err
}
_, err = nutanix.GetKarbonClusterSsh(ctx, &nutanix.GetKarbonClusterSshArgs{
KarbonClusterName: pulumi.StringRef("<YOUR-CLUSTER-NAME>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var sshbyid = Nutanix.GetKarbonClusterSsh.Invoke(new()
{
KarbonClusterId = "<YOUR-CLUSTER-ID>",
});
var sshbyname = Nutanix.GetKarbonClusterSsh.Invoke(new()
{
KarbonClusterName = "<YOUR-CLUSTER-NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetKarbonClusterSshArgs;
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 sshbyid = NutanixFunctions.getKarbonClusterSsh(GetKarbonClusterSshArgs.builder()
.karbonClusterId("<YOUR-CLUSTER-ID>")
.build());
final var sshbyname = NutanixFunctions.getKarbonClusterSsh(GetKarbonClusterSshArgs.builder()
.karbonClusterName("<YOUR-CLUSTER-NAME>")
.build());
}
}
variables:
sshbyid:
fn::invoke:
Function: nutanix:getKarbonClusterSsh
Arguments:
karbonClusterId: <YOUR-CLUSTER-ID>
sshbyname:
fn::invoke:
Function: nutanix:getKarbonClusterSsh
Arguments:
karbonClusterName: <YOUR-CLUSTER-NAME>
Using getKarbonClusterSsh
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 getKarbonClusterSsh(args: GetKarbonClusterSshArgs, opts?: InvokeOptions): Promise<GetKarbonClusterSshResult>
function getKarbonClusterSshOutput(args: GetKarbonClusterSshOutputArgs, opts?: InvokeOptions): Output<GetKarbonClusterSshResult>
def get_karbon_cluster_ssh(karbon_cluster_id: Optional[str] = None,
karbon_cluster_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKarbonClusterSshResult
def get_karbon_cluster_ssh_output(karbon_cluster_id: Optional[pulumi.Input[str]] = None,
karbon_cluster_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKarbonClusterSshResult]
func GetKarbonClusterSsh(ctx *Context, args *GetKarbonClusterSshArgs, opts ...InvokeOption) (*GetKarbonClusterSshResult, error)
func GetKarbonClusterSshOutput(ctx *Context, args *GetKarbonClusterSshOutputArgs, opts ...InvokeOption) GetKarbonClusterSshResultOutput
> Note: This function is named GetKarbonClusterSsh
in the Go SDK.
public static class GetKarbonClusterSsh
{
public static Task<GetKarbonClusterSshResult> InvokeAsync(GetKarbonClusterSshArgs args, InvokeOptions? opts = null)
public static Output<GetKarbonClusterSshResult> Invoke(GetKarbonClusterSshInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKarbonClusterSshResult> getKarbonClusterSsh(GetKarbonClusterSshArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh
arguments:
# arguments dictionary
The following arguments are supported:
- Karbon
Cluster stringId - Represents karbon cluster uuid
- Karbon
Cluster stringName - Represents the name of karbon cluster
- Karbon
Cluster stringId - Represents karbon cluster uuid
- Karbon
Cluster stringName - Represents the name of karbon cluster
- karbon
Cluster StringId - Represents karbon cluster uuid
- karbon
Cluster StringName - Represents the name of karbon cluster
- karbon
Cluster stringId - Represents karbon cluster uuid
- karbon
Cluster stringName - Represents the name of karbon cluster
- karbon_
cluster_ strid - Represents karbon cluster uuid
- karbon_
cluster_ strname - Represents the name of karbon cluster
- karbon
Cluster StringId - Represents karbon cluster uuid
- karbon
Cluster StringName - Represents the name of karbon cluster
getKarbonClusterSsh Result
The following output properties are available:
- Certificate string
- Certificate of the user for SSH access.
- Expiry
Time string - Timestamp of certificate expiry in the ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ).
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Key string - The private key of the user for SSH access.
- Username string
- The username for which credentials are returned.
- Karbon
Cluster stringId - Karbon
Cluster stringName
- Certificate string
- Certificate of the user for SSH access.
- Expiry
Time string - Timestamp of certificate expiry in the ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ).
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Key string - The private key of the user for SSH access.
- Username string
- The username for which credentials are returned.
- Karbon
Cluster stringId - Karbon
Cluster stringName
- certificate String
- Certificate of the user for SSH access.
- expiry
Time String - Timestamp of certificate expiry in the ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ).
- id String
- The provider-assigned unique ID for this managed resource.
- private
Key String - The private key of the user for SSH access.
- username String
- The username for which credentials are returned.
- karbon
Cluster StringId - karbon
Cluster StringName
- certificate string
- Certificate of the user for SSH access.
- expiry
Time string - Timestamp of certificate expiry in the ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ).
- id string
- The provider-assigned unique ID for this managed resource.
- private
Key string - The private key of the user for SSH access.
- username string
- The username for which credentials are returned.
- karbon
Cluster stringId - karbon
Cluster stringName
- certificate str
- Certificate of the user for SSH access.
- expiry_
time str - Timestamp of certificate expiry in the ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ).
- id str
- The provider-assigned unique ID for this managed resource.
- private_
key str - The private key of the user for SSH access.
- username str
- The username for which credentials are returned.
- karbon_
cluster_ strid - karbon_
cluster_ strname
- certificate String
- Certificate of the user for SSH access.
- expiry
Time String - Timestamp of certificate expiry in the ISO 8601 format (YYYY-MM-DDThh:mm:ss.sssZ).
- id String
- The provider-assigned unique ID for this managed resource.
- private
Key String - The private key of the user for SSH access.
- username String
- The username for which credentials are returned.
- karbon
Cluster StringId - karbon
Cluster StringName
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.