oci.Core.getDrgRouteDistributions
This data source provides the list of Drg Route Distributions in Oracle Cloud Infrastructure Core service.
Lists the route distributions in the specified DRG.
To retrieve the statements in a distribution, use the ListDrgRouteDistributionStatements operation.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDrgRouteDistributions = Oci.Core.GetDrgRouteDistributions.Invoke(new()
{
DrgId = oci_core_drg.Test_drg.Id,
DisplayName = @var.Drg_route_distribution_display_name,
State = @var.Drg_route_distribution_state,
});
});
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.GetDrgRouteDistributions(ctx, &core.GetDrgRouteDistributionsArgs{
DrgId: oci_core_drg.Test_drg.Id,
DisplayName: pulumi.StringRef(_var.Drg_route_distribution_display_name),
State: pulumi.StringRef(_var.Drg_route_distribution_state),
}, 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.GetDrgRouteDistributionsArgs;
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 testDrgRouteDistributions = CoreFunctions.getDrgRouteDistributions(GetDrgRouteDistributionsArgs.builder()
.drgId(oci_core_drg.test_drg().id())
.displayName(var_.drg_route_distribution_display_name())
.state(var_.drg_route_distribution_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_drg_route_distributions = oci.Core.get_drg_route_distributions(drg_id=oci_core_drg["test_drg"]["id"],
display_name=var["drg_route_distribution_display_name"],
state=var["drg_route_distribution_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgRouteDistributions = oci.Core.getDrgRouteDistributions({
drgId: oci_core_drg.test_drg.id,
displayName: _var.drg_route_distribution_display_name,
state: _var.drg_route_distribution_state,
});
variables:
testDrgRouteDistributions:
fn::invoke:
Function: oci:Core:getDrgRouteDistributions
Arguments:
drgId: ${oci_core_drg.test_drg.id}
displayName: ${var.drg_route_distribution_display_name}
state: ${var.drg_route_distribution_state}
Using getDrgRouteDistributions
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 getDrgRouteDistributions(args: GetDrgRouteDistributionsArgs, opts?: InvokeOptions): Promise<GetDrgRouteDistributionsResult>
function getDrgRouteDistributionsOutput(args: GetDrgRouteDistributionsOutputArgs, opts?: InvokeOptions): Output<GetDrgRouteDistributionsResult>
def get_drg_route_distributions(display_name: Optional[str] = None,
drg_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetDrgRouteDistributionsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDrgRouteDistributionsResult
def get_drg_route_distributions_output(display_name: Optional[pulumi.Input[str]] = None,
drg_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetDrgRouteDistributionsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDrgRouteDistributionsResult]
func GetDrgRouteDistributions(ctx *Context, args *GetDrgRouteDistributionsArgs, opts ...InvokeOption) (*GetDrgRouteDistributionsResult, error)
func GetDrgRouteDistributionsOutput(ctx *Context, args *GetDrgRouteDistributionsOutputArgs, opts ...InvokeOption) GetDrgRouteDistributionsResultOutput
> Note: This function is named GetDrgRouteDistributions
in the Go SDK.
public static class GetDrgRouteDistributions
{
public static Task<GetDrgRouteDistributionsResult> InvokeAsync(GetDrgRouteDistributionsArgs args, InvokeOptions? opts = null)
public static Output<GetDrgRouteDistributionsResult> Invoke(GetDrgRouteDistributionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDrgRouteDistributionsResult> getDrgRouteDistributions(GetDrgRouteDistributionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getDrgRouteDistributions:getDrgRouteDistributions
arguments:
# arguments dictionary
The following arguments are supported:
- Drg
Id string The OCID of the DRG.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Drg Route Distributions Filter> - State string
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- Drg
Id string The OCID of the DRG.
- Display
Name string A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Drg Route Distributions Filter - State string
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- drg
Id String The OCID of the DRG.
- display
Name String A filter to return only resources that match the given display name exactly.
- filters
List<Get
Drg Route Distributions Filter> - state String
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- drg
Id string The OCID of the DRG.
- display
Name string A filter to return only resources that match the given display name exactly.
- filters
Get
Drg Route Distributions Filter[] - state string
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- drg_
id str The OCID of the DRG.
- display_
name str A filter to return only resources that match the given display name exactly.
- filters
Get
Drg Route Distributions Filter] - state str
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- drg
Id String The OCID of the DRG.
- display
Name String A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- state String
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
getDrgRouteDistributions Result
The following output properties are available:
- Drg
Id string The OCID of the DRG that contains this route distribution.
- Drg
Route List<GetDistributions Drg Route Distributions Drg Route Distribution> The list of drg_route_distributions.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Drg Route Distributions Filter> - State string
The route distribution's current state.
- Drg
Id string The OCID of the DRG that contains this route distribution.
- Drg
Route []GetDistributions Drg Route Distributions Drg Route Distribution The list of drg_route_distributions.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Drg Route Distributions Filter - State string
The route distribution's current state.
- drg
Id String The OCID of the DRG that contains this route distribution.
- drg
Route List<GetDistributions Drg Route Distributions Drg Route Distribution> The list of drg_route_distributions.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Drg Route Distributions Filter> - state String
The route distribution's current state.
- drg
Id string The OCID of the DRG that contains this route distribution.
- drg
Route GetDistributions Drg Route Distributions Drg Route Distribution[] The list of drg_route_distributions.
- id string
The provider-assigned unique ID for this managed resource.
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Drg Route Distributions Filter[] - state string
The route distribution's current state.
- drg_
id str The OCID of the DRG that contains this route distribution.
- drg_
route_ Getdistributions Drg Route Distributions Drg Route Distribution] The list of drg_route_distributions.
- id str
The provider-assigned unique ID for this managed resource.
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Drg Route Distributions Filter] - state str
The route distribution's current state.
- drg
Id String The OCID of the DRG that contains this route distribution.
- drg
Route List<Property Map>Distributions The list of drg_route_distributions.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
The route distribution's current state.
Supporting Types
GetDrgRouteDistributionsDrgRouteDistribution
- Compartment
Id string The OCID of the compartment containing the route distribution.
- 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"}
- Display
Name string A filter to return only resources that match the given display name exactly.
- Distribution
Type string Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
- Drg
Id string The OCID of the DRG.
- 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 route distribution's Oracle ID (OCID).
- State string
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- Time
Created string The date and time the route distribution was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string The OCID of the compartment containing the route distribution.
- 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"}
- Display
Name string A filter to return only resources that match the given display name exactly.
- Distribution
Type string Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
- Drg
Id string The OCID of the DRG.
- 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 route distribution's Oracle ID (OCID).
- State string
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- Time
Created string The date and time the route distribution was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String The OCID of the compartment containing the route distribution.
- 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"}
- display
Name String A filter to return only resources that match the given display name exactly.
- distribution
Type String Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
- drg
Id String The OCID of the DRG.
- 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 route distribution's Oracle ID (OCID).
- state String
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- time
Created String The date and time the route distribution was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string The OCID of the compartment containing the route distribution.
- {[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"}
- display
Name string A filter to return only resources that match the given display name exactly.
- distribution
Type string Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
- drg
Id string The OCID of the DRG.
- {[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 route distribution's Oracle ID (OCID).
- state string
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- time
Created string The date and time the route distribution was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str The OCID of the compartment containing the route distribution.
- 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 filter to return only resources that match the given display name exactly.
- distribution_
type str Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
- drg_
id str The OCID of the DRG.
- 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 route distribution's Oracle ID (OCID).
- state str
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- time_
created str The date and time the route distribution was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String The OCID of the compartment containing the route distribution.
- 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"}
- display
Name String A filter to return only resources that match the given display name exactly.
- distribution
Type String Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
- drg
Id String The OCID of the DRG.
- 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 route distribution's Oracle ID (OCID).
- state String
A filter that only returns resources that match the specified lifecycle state. The value is case insensitive.
- time
Created String The date and time the route distribution was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
GetDrgRouteDistributionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.