1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getDistributedDatabaseDistributedDatabaseRaftMetric
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi

    This data source provides details about a specific Distributed Database Raft Metric resource in Oracle Cloud Infrastructure Distributed Database service.

    Operation to retrieve RAFT metrics for the Globally distributed database. If the Globally distributed database is not RAFT based then empty response is returned from the API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDistributedDatabaseRaftMetric = oci.oci.getDistributedDatabaseDistributedDatabaseRaftMetric({
        distributedDatabaseId: testDistributedDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_distributed_database_raft_metric = oci.oci.get_distributed_database_distributed_database_raft_metric(distributed_database_id=test_distributed_database["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetDistributedDatabaseDistributedDatabaseRaftMetric(ctx, &oci.GetDistributedDatabaseDistributedDatabaseRaftMetricArgs{
    			DistributedDatabaseId: testDistributedDatabase.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 testDistributedDatabaseRaftMetric = Oci.Oci.GetDistributedDatabaseDistributedDatabaseRaftMetric.Invoke(new()
        {
            DistributedDatabaseId = testDistributedDatabase.Id,
        });
    
    });
    
    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.GetDistributedDatabaseDistributedDatabaseRaftMetricArgs;
    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 testDistributedDatabaseRaftMetric = OciFunctions.getDistributedDatabaseDistributedDatabaseRaftMetric(GetDistributedDatabaseDistributedDatabaseRaftMetricArgs.builder()
                .distributedDatabaseId(testDistributedDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testDistributedDatabaseRaftMetric:
        fn::invoke:
          function: oci:oci:getDistributedDatabaseDistributedDatabaseRaftMetric
          arguments:
            distributedDatabaseId: ${testDistributedDatabase.id}
    
    Example coming soon!
    

    Using getDistributedDatabaseDistributedDatabaseRaftMetric

    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 getDistributedDatabaseDistributedDatabaseRaftMetric(args: GetDistributedDatabaseDistributedDatabaseRaftMetricArgs, opts?: InvokeOptions): Promise<GetDistributedDatabaseDistributedDatabaseRaftMetricResult>
    function getDistributedDatabaseDistributedDatabaseRaftMetricOutput(args: GetDistributedDatabaseDistributedDatabaseRaftMetricOutputArgs, opts?: InvokeOptions): Output<GetDistributedDatabaseDistributedDatabaseRaftMetricResult>
    def get_distributed_database_distributed_database_raft_metric(distributed_database_id: Optional[str] = None,
                                                                  opts: Optional[InvokeOptions] = None) -> GetDistributedDatabaseDistributedDatabaseRaftMetricResult
    def get_distributed_database_distributed_database_raft_metric_output(distributed_database_id: pulumi.Input[Optional[str]] = None,
                                                                  opts: Optional[InvokeOptions] = None) -> Output[GetDistributedDatabaseDistributedDatabaseRaftMetricResult]
    func GetDistributedDatabaseDistributedDatabaseRaftMetric(ctx *Context, args *GetDistributedDatabaseDistributedDatabaseRaftMetricArgs, opts ...InvokeOption) (*GetDistributedDatabaseDistributedDatabaseRaftMetricResult, error)
    func GetDistributedDatabaseDistributedDatabaseRaftMetricOutput(ctx *Context, args *GetDistributedDatabaseDistributedDatabaseRaftMetricOutputArgs, opts ...InvokeOption) GetDistributedDatabaseDistributedDatabaseRaftMetricResultOutput

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

    public static class GetDistributedDatabaseDistributedDatabaseRaftMetric 
    {
        public static Task<GetDistributedDatabaseDistributedDatabaseRaftMetricResult> InvokeAsync(GetDistributedDatabaseDistributedDatabaseRaftMetricArgs args, InvokeOptions? opts = null)
        public static Output<GetDistributedDatabaseDistributedDatabaseRaftMetricResult> Invoke(GetDistributedDatabaseDistributedDatabaseRaftMetricInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDistributedDatabaseDistributedDatabaseRaftMetricResult> getDistributedDatabaseDistributedDatabaseRaftMetric(GetDistributedDatabaseDistributedDatabaseRaftMetricArgs args, InvokeOptions options)
    public static Output<GetDistributedDatabaseDistributedDatabaseRaftMetricResult> getDistributedDatabaseDistributedDatabaseRaftMetric(GetDistributedDatabaseDistributedDatabaseRaftMetricArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getDistributedDatabaseDistributedDatabaseRaftMetric:getDistributedDatabaseDistributedDatabaseRaftMetric
      arguments:
        # arguments dictionary
    data "oci_oci_getdistributeddatabasedistributeddatabaseraftmetric" "name" {
        # arguments
    }

    The following arguments are supported:

    DistributedDatabaseId string
    Globally distributed database identifier
    DistributedDatabaseId string
    Globally distributed database identifier
    distributed_database_id string
    Globally distributed database identifier
    distributedDatabaseId String
    Globally distributed database identifier
    distributedDatabaseId string
    Globally distributed database identifier
    distributed_database_id str
    Globally distributed database identifier
    distributedDatabaseId String
    Globally distributed database identifier

    getDistributedDatabaseDistributedDatabaseRaftMetric Result

    The following output properties are available:

    ConfigTasks Dictionary<string, string>
    Details of in-progress configuration tasks.
    DistributedDatabaseId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RaftMetrics Dictionary<string, string>
    Raft metrics for the Globally distributed database.
    ConfigTasks map[string]string
    Details of in-progress configuration tasks.
    DistributedDatabaseId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RaftMetrics map[string]string
    Raft metrics for the Globally distributed database.
    config_tasks map(string)
    Details of in-progress configuration tasks.
    distributed_database_id string
    id string
    The provider-assigned unique ID for this managed resource.
    raft_metrics map(string)
    Raft metrics for the Globally distributed database.
    configTasks Map<String,String>
    Details of in-progress configuration tasks.
    distributedDatabaseId String
    id String
    The provider-assigned unique ID for this managed resource.
    raftMetrics Map<String,String>
    Raft metrics for the Globally distributed database.
    configTasks {[key: string]: string}
    Details of in-progress configuration tasks.
    distributedDatabaseId string
    id string
    The provider-assigned unique ID for this managed resource.
    raftMetrics {[key: string]: string}
    Raft metrics for the Globally distributed database.
    config_tasks Mapping[str, str]
    Details of in-progress configuration tasks.
    distributed_database_id str
    id str
    The provider-assigned unique ID for this managed resource.
    raft_metrics Mapping[str, str]
    Raft metrics for the Globally distributed database.
    configTasks Map<String>
    Details of in-progress configuration tasks.
    distributedDatabaseId String
    id String
    The provider-assigned unique ID for this managed resource.
    raftMetrics Map<String>
    Raft metrics for the Globally distributed database.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.11.0
    published on Friday, May 15, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.