Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getDrgs
Explore with Pulumi AI
This data source provides the list of Drgs in Oracle Cloud Infrastructure Core service.
Lists the DRGs in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgs = oci.Core.getDrgs({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_drgs = oci.Core.get_drgs(compartment_id=compartment_id)
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.GetDrgs(ctx, &core.GetDrgsArgs{
CompartmentId: compartmentId,
}, 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 testDrgs = Oci.Core.GetDrgs.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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(compartmentId)
.build());
}
}
variables:
testDrgs:
fn::invoke:
Function: oci:Core:getDrgs
Arguments:
compartmentId: ${compartmentId}
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:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Drgs Filter>
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Drgs Filter
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Drgs Filter>
- compartment
Id string - The OCID of the compartment.
- filters
Get
Drgs Filter[]
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[core.
Get Drgs Filter]
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
getDrgs Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the DRG.
- Drgs
List<Get
Drgs Drg> - The list of drgs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Drgs Filter>
- Compartment
Id string - The OCID of the compartment containing the DRG.
- Drgs
[]Get
Drgs Drg - The list of drgs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Drgs Filter
- compartment
Id String - The OCID of the compartment containing the DRG.
- drgs
List<Get
Drgs Drg> - The list of drgs.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Drgs Filter>
- compartment
Id string - The OCID of the compartment containing the DRG.
- drgs
Get
Drgs Drg[] - The list of drgs.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Drgs Filter[]
- compartment_
id str - The OCID of the compartment containing the DRG.
- drgs
Sequence[core.
Get Drgs Drg] - The list of drgs.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[core.
Get Drgs Filter]
- compartment
Id 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
- Compartment
Id string - The OCID of the compartment.
- Default
Drg List<GetRoute Tables Drgs Drg Default Drg Route Table> - The default DRG route table for this DRG. Each network type has a default DRG route table.
- Default
Export stringDrg Route Distribution Id - The OCID of this DRG's default export route distribution for the DRG attachments.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 DRG's Oracle ID (OCID).
- Redundancy
Status string - State string
- The DRG's current state.
- Time
Created string - The date and time the DRG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment.
- Default
Drg []GetRoute Tables Drgs Drg Default Drg Route Table - The default DRG route table for this DRG. Each network type has a default DRG route table.
- Default
Export stringDrg Route Distribution Id - The OCID of this DRG's default export route distribution for the DRG attachments.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 DRG's Oracle ID (OCID).
- Redundancy
Status string - State string
- The DRG's current state.
- Time
Created string - The date and time the DRG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment.
- default
Drg List<GetRoute Tables Drgs Drg Default Drg Route Table> - The default DRG route table for this DRG. Each network type has a default DRG route table.
- default
Export StringDrg Route Distribution Id - The OCID of this DRG's default export route distribution for the DRG attachments.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 DRG's Oracle ID (OCID).
- redundancy
Status String - state String
- The DRG's current state.
- time
Created String - The date and time the DRG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment.
- default
Drg GetRoute Tables Drgs Drg Default Drg Route Table[] - The default DRG route table for this DRG. Each network type has a default DRG route table.
- default
Export stringDrg Route Distribution Id - The OCID of this DRG's default export route distribution for the DRG attachments.
- {[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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 DRG's Oracle ID (OCID).
- redundancy
Status string - state string
- The DRG's current state.
- time
Created 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_ Sequence[core.route_ tables Get Drgs Drg Default Drg Route Table] - The default DRG route table for this DRG. Each network type has a default DRG route table.
- default_
export_ strdrg_ route_ distribution_ id - The OCID of this DRG's default export route distribution for the DRG attachments.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 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
- compartment
Id String - The OCID of the compartment.
- default
Drg List<Property Map>Route Tables - The default DRG route table for this DRG. Each network type has a default DRG route table.
- default
Export StringDrg Route Distribution Id - The OCID of this DRG's default export route distribution for the DRG attachments.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 DRG's Oracle ID (OCID).
- redundancy
Status String - state String
- The DRG's current state.
- time
Created String - The date and time the DRG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
GetDrgsDrgDefaultDrgRouteTable
- Ipsec
Tunnel string - The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.
- Remote
Peering stringConnection - 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.
- Virtual
Circuit string - The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.
- Ipsec
Tunnel string - The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.
- Remote
Peering stringConnection - 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.
- Virtual
Circuit string - The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.
- ipsec
Tunnel String - The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.
- remote
Peering StringConnection - 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.
- virtual
Circuit String - The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.
- ipsec
Tunnel string - The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.
- remote
Peering stringConnection - 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.
- virtual
Circuit 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_ strconnection - 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.
- ipsec
Tunnel String - The OCID of the default DRG route table assigned to DRG attachments of type IPSEC_TUNNEL on creation.
- remote
Peering StringConnection - 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.
- virtual
Circuit String - The OCID of the default DRG route table to be assigned to DRG attachments of type VIRTUAL_CIRCUIT on creation.
GetDrgsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.