Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getComputeCluster
Explore with Pulumi AI
This data source provides details about a specific Compute Cluster resource in Oracle Cloud Infrastructure Core service.
Gets information about a compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeCluster = oci.Core.getComputeCluster({
computeClusterId: testComputeClusterOciCoreComputeCluster.id,
});
import pulumi
import pulumi_oci as oci
test_compute_cluster = oci.Core.get_compute_cluster(compute_cluster_id=test_compute_cluster_oci_core_compute_cluster["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.GetComputeCluster(ctx, &core.GetComputeClusterArgs{
ComputeClusterId: testComputeClusterOciCoreComputeCluster.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testComputeCluster = Oci.Core.GetComputeCluster.Invoke(new()
{
ComputeClusterId = testComputeClusterOciCoreComputeCluster.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetComputeClusterArgs;
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 testComputeCluster = CoreFunctions.getComputeCluster(GetComputeClusterArgs.builder()
.computeClusterId(testComputeClusterOciCoreComputeCluster.id())
.build());
}
}
variables:
testComputeCluster:
fn::invoke:
Function: oci:Core:getComputeCluster
Arguments:
computeClusterId: ${testComputeClusterOciCoreComputeCluster.id}
Using getComputeCluster
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 getComputeCluster(args: GetComputeClusterArgs, opts?: InvokeOptions): Promise<GetComputeClusterResult>
function getComputeClusterOutput(args: GetComputeClusterOutputArgs, opts?: InvokeOptions): Output<GetComputeClusterResult>
def get_compute_cluster(compute_cluster_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeClusterResult
def get_compute_cluster_output(compute_cluster_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeClusterResult]
func GetComputeCluster(ctx *Context, args *GetComputeClusterArgs, opts ...InvokeOption) (*GetComputeClusterResult, error)
func GetComputeClusterOutput(ctx *Context, args *GetComputeClusterOutputArgs, opts ...InvokeOption) GetComputeClusterResultOutput
> Note: This function is named GetComputeCluster
in the Go SDK.
public static class GetComputeCluster
{
public static Task<GetComputeClusterResult> InvokeAsync(GetComputeClusterArgs args, InvokeOptions? opts = null)
public static Output<GetComputeClusterResult> Invoke(GetComputeClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeClusterResult> getComputeCluster(GetComputeClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getComputeCluster:getComputeCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Compute
Cluster stringId - The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
- Compute
Cluster stringId - The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
- compute
Cluster StringId - The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
- compute
Cluster stringId - The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
- compute_
cluster_ strid - The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
- compute
Cluster StringId - The OCID of the compute cluster. A compute cluster is a remote direct memory access (RDMA) network group.
getComputeCluster Result
The following output properties are available:
- Availability
Domain string - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment that contains the compute cluster.
- Compute
Cluster stringId - Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the compute cluster.
- State string
- The current state of the compute cluster.
- Time
Created string - The date and time the compute cluster was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Availability
Domain string - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment that contains the compute cluster.
- Compute
Cluster stringId - map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the compute cluster.
- State string
- The current state of the compute cluster.
- Time
Created string - The date and time the compute cluster was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment that contains the compute cluster.
- compute
Cluster StringId - Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the compute cluster.
- state String
- The current state of the compute cluster.
- time
Created String - The date and time the compute cluster was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain string - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment that contains the compute cluster.
- compute
Cluster stringId - {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the compute cluster.
- state string
- The current state of the compute cluster.
- time
Created string - The date and time the compute cluster was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability_
domain str - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- compartment_
id str - The OCID of the compartment that contains the compute cluster.
- compute_
cluster_ strid - Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the compute cluster.
- state str
- The current state of the compute cluster.
- time_
created str - The date and time the compute cluster was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- availability
Domain String - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment that contains the compute cluster.
- compute
Cluster StringId - Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the compute cluster.
- state String
- The current state of the compute cluster.
- time
Created String - The date and time the compute cluster was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.