Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getComputeClusters
Explore with Pulumi AI
This data source provides the list of Compute Clusters in Oracle Cloud Infrastructure Core service.
Lists the compute clusters in the specified compartment. 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 testComputeClusters = oci.Core.getComputeClusters({
compartmentId: compartmentId,
availabilityDomain: computeClusterAvailabilityDomain,
displayName: computeClusterDisplayName,
});
import pulumi
import pulumi_oci as oci
test_compute_clusters = oci.Core.get_compute_clusters(compartment_id=compartment_id,
availability_domain=compute_cluster_availability_domain,
display_name=compute_cluster_display_name)
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.GetComputeClusters(ctx, &core.GetComputeClustersArgs{
CompartmentId: compartmentId,
AvailabilityDomain: pulumi.StringRef(computeClusterAvailabilityDomain),
DisplayName: pulumi.StringRef(computeClusterDisplayName),
}, 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 testComputeClusters = Oci.Core.GetComputeClusters.Invoke(new()
{
CompartmentId = compartmentId,
AvailabilityDomain = computeClusterAvailabilityDomain,
DisplayName = computeClusterDisplayName,
});
});
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.GetComputeClustersArgs;
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 testComputeClusters = CoreFunctions.getComputeClusters(GetComputeClustersArgs.builder()
.compartmentId(compartmentId)
.availabilityDomain(computeClusterAvailabilityDomain)
.displayName(computeClusterDisplayName)
.build());
}
}
variables:
testComputeClusters:
fn::invoke:
Function: oci:Core:getComputeClusters
Arguments:
compartmentId: ${compartmentId}
availabilityDomain: ${computeClusterAvailabilityDomain}
displayName: ${computeClusterDisplayName}
Using getComputeClusters
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 getComputeClusters(args: GetComputeClustersArgs, opts?: InvokeOptions): Promise<GetComputeClustersResult>
function getComputeClustersOutput(args: GetComputeClustersOutputArgs, opts?: InvokeOptions): Output<GetComputeClustersResult>
def get_compute_clusters(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetComputeClustersFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeClustersResult
def get_compute_clusters_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetComputeClustersFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeClustersResult]
func GetComputeClusters(ctx *Context, args *GetComputeClustersArgs, opts ...InvokeOption) (*GetComputeClustersResult, error)
func GetComputeClustersOutput(ctx *Context, args *GetComputeClustersOutputArgs, opts ...InvokeOption) GetComputeClustersResultOutput
> Note: This function is named GetComputeClusters
in the Go SDK.
public static class GetComputeClusters
{
public static Task<GetComputeClustersResult> InvokeAsync(GetComputeClustersArgs args, InvokeOptions? opts = null)
public static Output<GetComputeClustersResult> Invoke(GetComputeClustersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeClustersResult> getComputeClusters(GetComputeClustersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getComputeClusters:getComputeClusters
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Compute Clusters Filter>
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Compute Clusters Filter
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Compute Clusters Filter>
- compartment
Id string - The OCID of the compartment.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Compute Clusters Filter[]
- compartment_
id str - The OCID of the compartment.
- availability_
domain str - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[core.
Get Compute Clusters Filter]
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
getComputeClusters Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the compute cluster.
- Compute
Cluster List<GetCollections Compute Clusters Compute Cluster Collection> - The list of compute_cluster_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Compute Clusters Filter>
- Compartment
Id string - The OCID of the compartment that contains the compute cluster.
- Compute
Cluster []GetCollections Compute Clusters Compute Cluster Collection - The list of compute_cluster_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Compute Clusters Filter
- compartment
Id String - The OCID of the compartment that contains the compute cluster.
- compute
Cluster List<GetCollections Compute Clusters Compute Cluster Collection> - The list of compute_cluster_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Compute Clusters Filter>
- compartment
Id string - The OCID of the compartment that contains the compute cluster.
- compute
Cluster GetCollections Compute Clusters Compute Cluster Collection[] - The list of compute_cluster_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- availability
Domain string - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Compute Clusters Filter[]
- compartment_
id str - The OCID of the compartment that contains the compute cluster.
- compute_
cluster_ Sequence[core.collections Get Compute Clusters Compute Cluster Collection] - The list of compute_cluster_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- availability_
domain str - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[core.
Get Compute Clusters Filter]
- compartment
Id String - The OCID of the compartment that contains the compute cluster.
- compute
Cluster List<Property Map>Collections - The list of compute_cluster_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - The availability domain the compute cluster is running in. Example:
Uocm:PHX-AD-1
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
Supporting Types
GetComputeClustersComputeClusterCollection
GetComputeClustersComputeClusterCollectionItem
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 name of the availability domain. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment.
- {[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 filter to return only resources that match the given display name exactly.
- {[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 name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment_
id str - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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
GetComputeClustersFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.