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

oci.Core.getDrgs

This data source provides the list of Drgs in Oracle Cloud Infrastructure Core service.

Lists the DRGs in the specified compartment.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testDrgs = Oci.Core.GetDrgs.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Core.GetDrgs(ctx, &core.GetDrgsArgs{
			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.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetDrgsArgs;
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 testDrgs = CoreFunctions.getDrgs(GetDrgsArgs.builder()
            .compartmentId(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_drgs = oci.Core.get_drgs(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrgs = oci.Core.getDrgs({
    compartmentId: _var.compartment_id,
});
variables:
  testDrgs:
    fn::invoke:
      Function: oci:Core:getDrgs
      Arguments:
        compartmentId: ${var.compartment_id}

Using getDrgs

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 getDrgs(args: GetDrgsArgs, opts?: InvokeOptions): Promise<GetDrgsResult>
function getDrgsOutput(args: GetDrgsOutputArgs, opts?: InvokeOptions): Output<GetDrgsResult>
def get_drgs(compartment_id: Optional[str] = None,
             filters: Optional[Sequence[_core.GetDrgsFilter]] = None,
             opts: Optional[InvokeOptions] = None) -> GetDrgsResult
def get_drgs_output(compartment_id: Optional[pulumi.Input[str]] = None,
             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetDrgsFilterArgs]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetDrgsResult]
func GetDrgs(ctx *Context, args *GetDrgsArgs, opts ...InvokeOption) (*GetDrgsResult, error)
func GetDrgsOutput(ctx *Context, args *GetDrgsOutputArgs, opts ...InvokeOption) GetDrgsResultOutput

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

public static class GetDrgs 
{
    public static Task<GetDrgsResult> InvokeAsync(GetDrgsArgs args, InvokeOptions? opts = null)
    public static Output<GetDrgsResult> Invoke(GetDrgsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDrgsResult> getDrgs(GetDrgsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Core/getDrgs:getDrgs
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

Filters List<GetDrgsFilter>
CompartmentId string

The OCID of the compartment.

Filters []GetDrgsFilter
compartmentId String

The OCID of the compartment.

filters List<GetDrgsFilter>
compartmentId string

The OCID of the compartment.

filters GetDrgsFilter[]
compartment_id str

The OCID of the compartment.

filters GetDrgsFilter]
compartmentId String

The OCID of the compartment.

filters List<Property Map>

getDrgs Result

The following output properties are available:

CompartmentId string

The OCID of the compartment containing the DRG.

Drgs List<GetDrgsDrg>

The list of drgs.

Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetDrgsFilter>
CompartmentId string

The OCID of the compartment containing the DRG.

Drgs []GetDrgsDrg

The list of drgs.

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetDrgsFilter
compartmentId String

The OCID of the compartment containing the DRG.

drgs List<GetDrgsDrg>

The list of drgs.

id String

The provider-assigned unique ID for this managed resource.

filters List<GetDrgsFilter>
compartmentId string

The OCID of the compartment containing the DRG.

drgs GetDrgsDrg[]

The list of drgs.

id string

The provider-assigned unique ID for this managed resource.

filters GetDrgsFilter[]
compartment_id str

The OCID of the compartment containing the DRG.

drgs GetDrgsDrg]

The list of drgs.

id str

The provider-assigned unique ID for this managed resource.

filters GetDrgsFilter]
compartmentId String

The OCID of the compartment containing the DRG.

drgs List<Property Map>

The list of drgs.

id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>

Supporting Types

GetDrgsDrg

CompartmentId string

The OCID of the compartment.

DefaultDrgRouteTables List<GetDrgsDrgDefaultDrgRouteTable>

The default DRG route table for this DRG. Each network type has a default DRG route table.

DefaultExportDrgRouteDistributionId string

The OCID of this DRG's default export route distribution for the DRG attachments.

DefinedTags Dictionary<string, object>

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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags Dictionary<string, object>

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 DRG's Oracle ID (OCID).

RedundancyStatus string
State string

The DRG's current state.

TimeCreated string

The date and time the DRG was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

CompartmentId string

The OCID of the compartment.

DefaultDrgRouteTables []GetDrgsDrgDefaultDrgRouteTable

The default DRG route table for this DRG. Each network type has a default DRG route table.

DefaultExportDrgRouteDistributionId string

The OCID of this DRG's default export route distribution for the DRG attachments.

DefinedTags map[string]interface{}

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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags map[string]interface{}

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 DRG's Oracle ID (OCID).

RedundancyStatus string
State string

The DRG's current state.

TimeCreated string

The date and time the DRG was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartmentId String

The OCID of the compartment.

defaultDrgRouteTables List<GetDrgsDrgDefaultDrgRouteTable>

The default DRG route table for this DRG. Each network type has a default DRG route table.

defaultExportDrgRouteDistributionId String

The OCID of this DRG's default export route distribution for the DRG attachments.

definedTags Map<String,Object>

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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags Map<String,Object>

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 DRG's Oracle ID (OCID).

redundancyStatus String
state String

The DRG's current state.

timeCreated String

The date and time the DRG was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartmentId string

The OCID of the compartment.

defaultDrgRouteTables GetDrgsDrgDefaultDrgRouteTable[]

The default DRG route table for this DRG. Each network type has a default DRG route table.

defaultExportDrgRouteDistributionId string

The OCID of this DRG's default export route distribution for the DRG attachments.

definedTags {[key: string]: any}

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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags {[key: string]: any}

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 DRG's Oracle ID (OCID).

redundancyStatus string
state string

The DRG's current state.

timeCreated string

The date and time the DRG was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartment_id str

The OCID of the compartment.

default_drg_route_tables GetDrgsDrgDefaultDrgRouteTable]

The default DRG route table for this DRG. Each network type has a default DRG route table.

default_export_drg_route_distribution_id str

The OCID of this DRG's default export route distribution for the DRG attachments.

defined_tags Mapping[str, Any]

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.

freeform_tags Mapping[str, Any]

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 DRG's Oracle ID (OCID).

redundancy_status str
state str

The DRG's current state.

time_created str

The date and time the DRG was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartmentId String

The OCID of the compartment.

defaultDrgRouteTables List<Property Map>

The default DRG route table for this DRG. Each network type has a default DRG route table.

defaultExportDrgRouteDistributionId String

The OCID of this DRG's default export route distribution for the DRG attachments.

definedTags Map<Any>

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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags Map<Any>

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 DRG's Oracle ID (OCID).

redundancyStatus String
state String

The DRG's current state.

timeCreated String

The date and time the DRG was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

GetDrgsDrgDefaultDrgRouteTable

IpsecTunnel string

The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.

RemotePeeringConnection string

The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.

Vcn string

The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.

VirtualCircuit string

The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.

IpsecTunnel string

The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.

RemotePeeringConnection string

The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.

Vcn string

The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.

VirtualCircuit string

The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.

ipsecTunnel String

The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.

remotePeeringConnection String

The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.

vcn String

The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.

virtualCircuit String

The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.

ipsecTunnel string

The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.

remotePeeringConnection string

The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.

vcn string

The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.

virtualCircuit string

The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.

ipsec_tunnel str

The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.

remote_peering_connection str

The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.

vcn str

The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.

virtual_circuit str

The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.

ipsecTunnel String

The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.

remotePeeringConnection String

The OCID of the default DRG route table to be assigned to DRG attachments of type REMOTE_PEERING_CONNECTION on creation.

vcn String

The OCID of the default DRG route table to be assigned to DRG attachments of type VCN on creation.

virtualCircuit String

The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.

GetDrgsFilter

Name string
Values List<string>
Regex bool
Name string
Values []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.