oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.Identity.getFaultDomains

This data source provides the list of Fault Domains in Oracle Cloud Infrastructure Identity service.

Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). See Where to Get the Tenancy’s OCID and User’s OCID.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testFaultDomains = Oci.Identity.GetFaultDomains.Invoke(new()
    {
        AvailabilityDomain = @var.Fault_domain_availability_domain,
        CompartmentId = @var.Compartment_id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Identity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Identity.GetFaultDomains(ctx, &identity.GetFaultDomainsArgs{
			AvailabilityDomain: _var.Fault_domain_availability_domain,
			CompartmentId:      _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.IdentityFunctions;
import com.pulumi.oci.Identity.inputs.GetFaultDomainsArgs;
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 testFaultDomains = IdentityFunctions.getFaultDomains(GetFaultDomainsArgs.builder()
            .availabilityDomain(var_.fault_domain_availability_domain())
            .compartmentId(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_fault_domains = oci.Identity.get_fault_domains(availability_domain=var["fault_domain_availability_domain"],
    compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testFaultDomains = oci.Identity.getFaultDomains({
    availabilityDomain: _var.fault_domain_availability_domain,
    compartmentId: _var.compartment_id,
});
variables:
  testFaultDomains:
    fn::invoke:
      Function: oci:Identity:getFaultDomains
      Arguments:
        availabilityDomain: ${var.fault_domain_availability_domain}
        compartmentId: ${var.compartment_id}

Using getFaultDomains

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 getFaultDomains(args: GetFaultDomainsArgs, opts?: InvokeOptions): Promise<GetFaultDomainsResult>
function getFaultDomainsOutput(args: GetFaultDomainsOutputArgs, opts?: InvokeOptions): Output<GetFaultDomainsResult>
def get_fault_domains(availability_domain: Optional[str] = None,
                      compartment_id: Optional[str] = None,
                      filters: Optional[Sequence[_identity.GetFaultDomainsFilter]] = None,
                      opts: Optional[InvokeOptions] = None) -> GetFaultDomainsResult
def get_fault_domains_output(availability_domain: Optional[pulumi.Input[str]] = None,
                      compartment_id: Optional[pulumi.Input[str]] = None,
                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetFaultDomainsFilterArgs]]]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetFaultDomainsResult]
func GetFaultDomains(ctx *Context, args *GetFaultDomainsArgs, opts ...InvokeOption) (*GetFaultDomainsResult, error)
func GetFaultDomainsOutput(ctx *Context, args *GetFaultDomainsOutputArgs, opts ...InvokeOption) GetFaultDomainsResultOutput

> Note: This function is named GetFaultDomains in the Go SDK.

public static class GetFaultDomains 
{
    public static Task<GetFaultDomainsResult> InvokeAsync(GetFaultDomainsArgs args, InvokeOptions? opts = null)
    public static Output<GetFaultDomainsResult> Invoke(GetFaultDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFaultDomainsResult> getFaultDomains(GetFaultDomainsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Identity/getFaultDomains:getFaultDomains
  arguments:
    # arguments dictionary

The following arguments are supported:

AvailabilityDomain string

The name of the availibilityDomain.

CompartmentId string

The OCID of the compartment (remember that the tenancy is simply the root compartment).

Filters List<GetFaultDomainsFilter>
AvailabilityDomain string

The name of the availibilityDomain.

CompartmentId string

The OCID of the compartment (remember that the tenancy is simply the root compartment).

Filters []GetFaultDomainsFilter
availabilityDomain String

The name of the availibilityDomain.

compartmentId String

The OCID of the compartment (remember that the tenancy is simply the root compartment).

filters List<GetFaultDomainsFilter>
availabilityDomain string

The name of the availibilityDomain.

compartmentId string

The OCID of the compartment (remember that the tenancy is simply the root compartment).

filters GetFaultDomainsFilter[]
availability_domain str

The name of the availibilityDomain.

compartment_id str

The OCID of the compartment (remember that the tenancy is simply the root compartment).

filters GetFaultDomainsFilter]
availabilityDomain String

The name of the availibilityDomain.

compartmentId String

The OCID of the compartment (remember that the tenancy is simply the root compartment).

filters List<Property Map>

getFaultDomains Result

The following output properties are available:

AvailabilityDomain string

The name of the availabilityDomain where the Fault Domain belongs.

CompartmentId string

The OCID of the compartment. Currently only tenancy (root) compartment can be provided.

FaultDomains List<GetFaultDomainsFaultDomain>

The list of fault_domains.

Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetFaultDomainsFilter>
AvailabilityDomain string

The name of the availabilityDomain where the Fault Domain belongs.

CompartmentId string

The OCID of the compartment. Currently only tenancy (root) compartment can be provided.

FaultDomains []GetFaultDomainsFaultDomain

The list of fault_domains.

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetFaultDomainsFilter
availabilityDomain String

The name of the availabilityDomain where the Fault Domain belongs.

compartmentId String

The OCID of the compartment. Currently only tenancy (root) compartment can be provided.

faultDomains List<GetFaultDomainsFaultDomain>

The list of fault_domains.

id String

The provider-assigned unique ID for this managed resource.

filters List<GetFaultDomainsFilter>
availabilityDomain string

The name of the availabilityDomain where the Fault Domain belongs.

compartmentId string

The OCID of the compartment. Currently only tenancy (root) compartment can be provided.

faultDomains GetFaultDomainsFaultDomain[]

The list of fault_domains.

id string

The provider-assigned unique ID for this managed resource.

filters GetFaultDomainsFilter[]
availability_domain str

The name of the availabilityDomain where the Fault Domain belongs.

compartment_id str

The OCID of the compartment. Currently only tenancy (root) compartment can be provided.

fault_domains GetFaultDomainsFaultDomain]

The list of fault_domains.

id str

The provider-assigned unique ID for this managed resource.

filters GetFaultDomainsFilter]
availabilityDomain String

The name of the availabilityDomain where the Fault Domain belongs.

compartmentId String

The OCID of the compartment. Currently only tenancy (root) compartment can be provided.

faultDomains List<Property Map>

The list of fault_domains.

id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>

Supporting Types

GetFaultDomainsFaultDomain

AvailabilityDomain string

The name of the availibilityDomain.

CompartmentId string

The OCID of the compartment (remember that the tenancy is simply the root compartment).

Id string

The OCID of the Fault Domain.

Name string

The name of the Fault Domain.

AvailabilityDomain string

The name of the availibilityDomain.

CompartmentId string

The OCID of the compartment (remember that the tenancy is simply the root compartment).

Id string

The OCID of the Fault Domain.

Name string

The name of the Fault Domain.

availabilityDomain String

The name of the availibilityDomain.

compartmentId String

The OCID of the compartment (remember that the tenancy is simply the root compartment).

id String

The OCID of the Fault Domain.

name String

The name of the Fault Domain.

availabilityDomain string

The name of the availibilityDomain.

compartmentId string

The OCID of the compartment (remember that the tenancy is simply the root compartment).

id string

The OCID of the Fault Domain.

name string

The name of the Fault Domain.

availability_domain str

The name of the availibilityDomain.

compartment_id str

The OCID of the compartment (remember that the tenancy is simply the root compartment).

id str

The OCID of the Fault Domain.

name str

The name of the Fault Domain.

availabilityDomain String

The name of the availibilityDomain.

compartmentId String

The OCID of the compartment (remember that the tenancy is simply the root compartment).

id String

The OCID of the Fault Domain.

name String

The name of the Fault Domain.

GetFaultDomainsFilter

Name string

The name of the Fault Domain.

Values List<string>
Regex bool
Name string

The name of the Fault Domain.

Values []string
Regex bool
name String

The name of the Fault Domain.

values List<String>
regex Boolean
name string

The name of the Fault Domain.

values string[]
regex boolean
name str

The name of the Fault Domain.

values Sequence[str]
regex bool
name String

The name of the Fault Domain.

values List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.