1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getClusterHealthDiagnosisStores
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.3.1
published on Tuesday, Oct 13, 2026 by Pulumi

    This data source provides the list of Diagnosis Stores in Oracle Cloud Infrastructure Cluster Health service.

    Gets a list of Diagnosis Stores.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDiagnosisStores = oci.oci.getClusterHealthDiagnosisStores({
        compartmentId: compartmentId,
        diagnosisStoreId: testDiagnosisStore.id,
        displayName: diagnosisStoreDisplayName,
        state: diagnosisStoreState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_diagnosis_stores = oci.oci.get_cluster_health_diagnosis_stores(compartment_id=compartment_id,
        diagnosis_store_id=test_diagnosis_store["id"],
        display_name=diagnosis_store_display_name,
        state=diagnosis_store_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetClusterHealthDiagnosisStores(ctx, &oci.GetClusterHealthDiagnosisStoresArgs{
    			CompartmentId:    pulumi.StringRef(compartmentId),
    			DiagnosisStoreId: pulumi.StringRef(testDiagnosisStore.Id),
    			DisplayName:      pulumi.StringRef(diagnosisStoreDisplayName),
    			State:            pulumi.StringRef(diagnosisStoreState),
    		}, 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 testDiagnosisStores = Oci.Oci.GetClusterHealthDiagnosisStores.Invoke(new()
        {
            CompartmentId = compartmentId,
            DiagnosisStoreId = testDiagnosisStore.Id,
            DisplayName = diagnosisStoreDisplayName,
            State = diagnosisStoreState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetClusterHealthDiagnosisStoresArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testDiagnosisStores = OciFunctions.getClusterHealthDiagnosisStores(GetClusterHealthDiagnosisStoresArgs.builder()
                .compartmentId(compartmentId)
                .diagnosisStoreId(testDiagnosisStore.get("id"))
                .displayName(diagnosisStoreDisplayName)
                .state(diagnosisStoreState)
                .build());
    
        }
    }
    
    variables:
      testDiagnosisStores:
        fn::invoke:
          function: oci:oci:getClusterHealthDiagnosisStores
          arguments:
            compartmentId: ${compartmentId}
            diagnosisStoreId: ${testDiagnosisStore.id}
            displayName: ${diagnosisStoreDisplayName}
            state: ${diagnosisStoreState}
    
    terraform {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_oci_cluster_health_diagnosis_stores" "testDiagnosisStores" {
      compartment_id     = compartmentId
      diagnosis_store_id = testDiagnosisStore.id
      display_name       = diagnosisStoreDisplayName
      state              = diagnosisStoreState
    }
    

    Using getClusterHealthDiagnosisStores

    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 getClusterHealthDiagnosisStores(args: GetClusterHealthDiagnosisStoresArgs, opts?: InvokeOptions): Promise<GetClusterHealthDiagnosisStoresResult>
    function getClusterHealthDiagnosisStoresOutput(args: GetClusterHealthDiagnosisStoresOutputArgs, opts?: InvokeOutputOptions): Output<GetClusterHealthDiagnosisStoresResult>
    def get_cluster_health_diagnosis_stores(compartment_id: Optional[str] = None,
                                            diagnosis_store_id: Optional[str] = None,
                                            display_name: Optional[str] = None,
                                            filters: Optional[Sequence[GetClusterHealthDiagnosisStoresFilter]] = None,
                                            state: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetClusterHealthDiagnosisStoresResult
    def get_cluster_health_diagnosis_stores_output(compartment_id: pulumi.Input[Optional[str]] = None,
                                            diagnosis_store_id: pulumi.Input[Optional[str]] = None,
                                            display_name: pulumi.Input[Optional[str]] = None,
                                            filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetClusterHealthDiagnosisStoresFilterArgs]]]] = None,
                                            state: pulumi.Input[Optional[str]] = None,
                                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetClusterHealthDiagnosisStoresResult]
    func GetClusterHealthDiagnosisStores(ctx *Context, args *GetClusterHealthDiagnosisStoresArgs, opts ...InvokeOption) (*GetClusterHealthDiagnosisStoresResult, error)
    func GetClusterHealthDiagnosisStoresOutput(ctx *Context, args *GetClusterHealthDiagnosisStoresOutputArgs, opts ...InvokeOption) GetClusterHealthDiagnosisStoresResultOutput

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

    public static class GetClusterHealthDiagnosisStores 
    {
        public static Task<GetClusterHealthDiagnosisStoresResult> InvokeAsync(GetClusterHealthDiagnosisStoresArgs args, InvokeOptions? opts = null)
        public static Output<GetClusterHealthDiagnosisStoresResult> Invoke(GetClusterHealthDiagnosisStoresInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetClusterHealthDiagnosisStoresResult> Invoke(GetClusterHealthDiagnosisStoresInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetClusterHealthDiagnosisStoresResult> getClusterHealthDiagnosisStores(GetClusterHealthDiagnosisStoresArgs args, InvokeOptions options)
    public static Output<GetClusterHealthDiagnosisStoresResult> getClusterHealthDiagnosisStores(GetClusterHealthDiagnosisStoresArgs args, InvokeOptions options)
    public static Output<GetClusterHealthDiagnosisStoresResult> getClusterHealthDiagnosisStores(GetClusterHealthDiagnosisStoresArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:oci/getClusterHealthDiagnosisStores:getClusterHealthDiagnosisStores
      arguments:
        # arguments dictionary
    data "oci_oci_get_cluster_health_diagnosis_stores" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DiagnosisStoreId string
    The OCID of the Diagnosis.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    Filters List<GetClusterHealthDiagnosisStoresFilter>
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DiagnosisStoreId string
    The OCID of the Diagnosis.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    Filters []GetClusterHealthDiagnosisStoresFilter
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id string
    The OCID of the compartment in which to list resources.
    diagnosis_store_id string
    The OCID of the Diagnosis.
    display_name string
    A filter to return only resources that match the given display name exactly.
    filters list(object)
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment in which to list resources.
    diagnosisStoreId String
    The OCID of the Diagnosis.
    displayName String
    A filter to return only resources that match the given display name exactly.
    filters List<GetClusterHealthDiagnosisStoresFilter>
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId string
    The OCID of the compartment in which to list resources.
    diagnosisStoreId string
    The OCID of the Diagnosis.
    displayName string
    A filter to return only resources that match the given display name exactly.
    filters GetClusterHealthDiagnosisStoresFilter[]
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id str
    The OCID of the compartment in which to list resources.
    diagnosis_store_id str
    The OCID of the Diagnosis.
    display_name str
    A filter to return only resources that match the given display name exactly.
    filters Sequence[GetClusterHealthDiagnosisStoresFilter]
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment in which to list resources.
    diagnosisStoreId String
    The OCID of the Diagnosis.
    displayName String
    A filter to return only resources that match the given display name exactly.
    filters List<Property Map>
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.

    getClusterHealthDiagnosisStores Result

    The following output properties are available:

    DiagnosisStoreCollections List<GetClusterHealthDiagnosisStoresDiagnosisStoreCollection>
    The list of diagnosis_store_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CompartmentId string
    The OCID of the compartment.
    DiagnosisStoreId string
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Filters List<GetClusterHealthDiagnosisStoresFilter>
    State string
    The current state of the Diagnosis.
    DiagnosisStoreCollections []GetClusterHealthDiagnosisStoresDiagnosisStoreCollection
    The list of diagnosis_store_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CompartmentId string
    The OCID of the compartment.
    DiagnosisStoreId string
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Filters []GetClusterHealthDiagnosisStoresFilter
    State string
    The current state of the Diagnosis.
    diagnosis_store_collections list(object)
    The list of diagnosis_store_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    compartment_id string
    The OCID of the compartment.
    diagnosis_store_id string
    display_name string
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters list(object)
    state string
    The current state of the Diagnosis.
    diagnosisStoreCollections List<GetClusterHealthDiagnosisStoresDiagnosisStoreCollection>
    The list of diagnosis_store_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    compartmentId String
    The OCID of the compartment.
    diagnosisStoreId String
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters List<GetClusterHealthDiagnosisStoresFilter>
    state String
    The current state of the Diagnosis.
    diagnosisStoreCollections GetClusterHealthDiagnosisStoresDiagnosisStoreCollection[]
    The list of diagnosis_store_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    compartmentId string
    The OCID of the compartment.
    diagnosisStoreId string
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters GetClusterHealthDiagnosisStoresFilter[]
    state string
    The current state of the Diagnosis.
    diagnosis_store_collections Sequence[GetClusterHealthDiagnosisStoresDiagnosisStoreCollection]
    The list of diagnosis_store_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    compartment_id str
    The OCID of the compartment.
    diagnosis_store_id str
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters Sequence[GetClusterHealthDiagnosisStoresFilter]
    state str
    The current state of the Diagnosis.
    diagnosisStoreCollections List<Property Map>
    The list of diagnosis_store_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    compartmentId String
    The OCID of the compartment.
    diagnosisStoreId String
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters List<Property Map>
    state String
    The current state of the Diagnosis.

    Supporting Types

    GetClusterHealthDiagnosisStoresDiagnosisStoreCollection

    GetClusterHealthDiagnosisStoresDiagnosisStoreCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags 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"}
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    FreeformTags 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 DiagnosisStore.
    LastAcceptedRequestToken string
    The last accepted request token.
    LastCompletedRequestToken string
    The last completed request token.
    LifecycleDetails string
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    ObjectStoreBucket string
    The name of the object store bucket.
    ObjectStoreNamespace string
    The namespace of the object store.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags 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"}
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    FreeformTags 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 DiagnosisStore.
    LastAcceptedRequestToken string
    The last accepted request token.
    LastCompletedRequestToken string
    The last completed request token.
    LifecycleDetails string
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    ObjectStoreBucket string
    The name of the object store bucket.
    ObjectStoreNamespace string
    The namespace of the object store.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id string
    The OCID of the compartment in which to list resources.
    defined_tags 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.
    freeform_tags 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 DiagnosisStore.
    last_accepted_request_token string
    The last accepted request token.
    last_completed_request_token string
    The last completed request token.
    lifecycle_details string
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    object_store_bucket string
    The name of the object store bucket.
    object_store_namespace string
    The namespace of the object store.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated string
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags 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"}
    displayName String
    A filter to return only resources that match the given display name exactly.
    freeformTags 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 DiagnosisStore.
    lastAcceptedRequestToken String
    The last accepted request token.
    lastCompletedRequestToken String
    The last completed request token.
    lifecycleDetails String
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    objectStoreBucket String
    The name of the object store bucket.
    objectStoreNamespace String
    The namespace of the object store.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment in which to list resources.
    definedTags {[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"}
    displayName string
    A filter to return only resources that match the given display name exactly.
    freeformTags {[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 DiagnosisStore.
    lastAcceptedRequestToken string
    The last accepted request token.
    lastCompletedRequestToken string
    The last completed request token.
    lifecycleDetails string
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    objectStoreBucket string
    The name of the object store bucket.
    objectStoreNamespace string
    The namespace of the object store.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment in which to list resources.
    defined_tags 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.
    freeform_tags 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 DiagnosisStore.
    last_accepted_request_token str
    The last accepted request token.
    last_completed_request_token str
    The last completed request token.
    lifecycle_details str
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    object_store_bucket str
    The name of the object store bucket.
    object_store_namespace str
    The namespace of the object store.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags 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"}
    displayName String
    A filter to return only resources that match the given display name exactly.
    freeformTags 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 DiagnosisStore.
    lastAcceptedRequestToken String
    The last accepted request token.
    lastCompletedRequestToken String
    The last completed request token.
    lifecycleDetails String
    A message that describes the current state of the Diagnosis in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    objectStoreBucket String
    The name of the object store bucket.
    objectStoreNamespace String
    The namespace of the object store.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Diagnosis Store was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Diagnosis Store was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    GetClusterHealthDiagnosisStoresFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(string)
    regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    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.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.3.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial