Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Core.getLocalPeeringGateways
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Local Peering Gateways in Oracle Cloud Infrastructure Core service.
Lists the local peering gateways (LPGs) for the specified VCN and specified compartment. If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLocalPeeringGateways = oci.Core.getLocalPeeringGateways({
compartmentId: compartmentId,
vcnId: testVcn.id,
});
import pulumi
import pulumi_oci as oci
test_local_peering_gateways = oci.Core.get_local_peering_gateways(compartment_id=compartment_id,
vcn_id=test_vcn["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.GetLocalPeeringGateways(ctx, &core.GetLocalPeeringGatewaysArgs{
CompartmentId: compartmentId,
VcnId: pulumi.StringRef(testVcn.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 testLocalPeeringGateways = Oci.Core.GetLocalPeeringGateways.Invoke(new()
{
CompartmentId = compartmentId,
VcnId = testVcn.Id,
});
});
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.GetLocalPeeringGatewaysArgs;
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 testLocalPeeringGateways = CoreFunctions.getLocalPeeringGateways(GetLocalPeeringGatewaysArgs.builder()
.compartmentId(compartmentId)
.vcnId(testVcn.id())
.build());
}
}
variables:
testLocalPeeringGateways:
fn::invoke:
Function: oci:Core:getLocalPeeringGateways
Arguments:
compartmentId: ${compartmentId}
vcnId: ${testVcn.id}
Using getLocalPeeringGateways
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 getLocalPeeringGateways(args: GetLocalPeeringGatewaysArgs, opts?: InvokeOptions): Promise<GetLocalPeeringGatewaysResult>
function getLocalPeeringGatewaysOutput(args: GetLocalPeeringGatewaysOutputArgs, opts?: InvokeOptions): Output<GetLocalPeeringGatewaysResult>
def get_local_peering_gateways(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetLocalPeeringGatewaysFilter]] = None,
vcn_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLocalPeeringGatewaysResult
def get_local_peering_gateways_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetLocalPeeringGatewaysFilterArgs]]]] = None,
vcn_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLocalPeeringGatewaysResult]
func GetLocalPeeringGateways(ctx *Context, args *GetLocalPeeringGatewaysArgs, opts ...InvokeOption) (*GetLocalPeeringGatewaysResult, error)
func GetLocalPeeringGatewaysOutput(ctx *Context, args *GetLocalPeeringGatewaysOutputArgs, opts ...InvokeOption) GetLocalPeeringGatewaysResultOutput
> Note: This function is named GetLocalPeeringGateways
in the Go SDK.
public static class GetLocalPeeringGateways
{
public static Task<GetLocalPeeringGatewaysResult> InvokeAsync(GetLocalPeeringGatewaysArgs args, InvokeOptions? opts = null)
public static Output<GetLocalPeeringGatewaysResult> Invoke(GetLocalPeeringGatewaysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLocalPeeringGatewaysResult> getLocalPeeringGateways(GetLocalPeeringGatewaysArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getLocalPeeringGateways:getLocalPeeringGateways
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Local Peering Gateways Filter> - Vcn
Id string - The OCID of the VCN.
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Local Peering Gateways Filter - Vcn
Id string - The OCID of the VCN.
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Local Peering Gateways Filter> - vcn
Id String - The OCID of the VCN.
- compartment
Id string - The OCID of the compartment.
- filters
Get
Local Peering Gateways Filter[] - vcn
Id string - The OCID of the VCN.
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[core.
Get Local Peering Gateways Filter] - vcn_
id str - The OCID of the VCN.
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
- vcn
Id String - The OCID of the VCN.
getLocalPeeringGateways Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the LPG.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Peering List<GetGateways Local Peering Gateways Local Peering Gateway> - The list of local_peering_gateways.
- Filters
List<Get
Local Peering Gateways Filter> - Vcn
Id string - The OCID of the VCN that uses the LPG.
- Compartment
Id string - The OCID of the compartment containing the LPG.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Peering []GetGateways Local Peering Gateways Local Peering Gateway - The list of local_peering_gateways.
- Filters
[]Get
Local Peering Gateways Filter - Vcn
Id string - The OCID of the VCN that uses the LPG.
- compartment
Id String - The OCID of the compartment containing the LPG.
- id String
- The provider-assigned unique ID for this managed resource.
- local
Peering List<GetGateways Local Peering Gateways Local Peering Gateway> - The list of local_peering_gateways.
- filters
List<Get
Local Peering Gateways Filter> - vcn
Id String - The OCID of the VCN that uses the LPG.
- compartment
Id string - The OCID of the compartment containing the LPG.
- id string
- The provider-assigned unique ID for this managed resource.
- local
Peering GetGateways Local Peering Gateways Local Peering Gateway[] - The list of local_peering_gateways.
- filters
Get
Local Peering Gateways Filter[] - vcn
Id string - The OCID of the VCN that uses the LPG.
- compartment_
id str - The OCID of the compartment containing the LPG.
- id str
- The provider-assigned unique ID for this managed resource.
- local_
peering_ Sequence[core.gateways Get Local Peering Gateways Local Peering Gateway] - The list of local_peering_gateways.
- filters
Sequence[core.
Get Local Peering Gateways Filter] - vcn_
id str - The OCID of the VCN that uses the LPG.
- compartment
Id String - The OCID of the compartment containing the LPG.
- id String
- The provider-assigned unique ID for this managed resource.
- local
Peering List<Property Map>Gateways - The list of local_peering_gateways.
- filters List<Property Map>
- vcn
Id String - The OCID of the VCN that uses the LPG.
Supporting Types
GetLocalPeeringGatewaysFilter
GetLocalPeeringGatewaysLocalPeeringGateway
- Compartment
Id string - The OCID of the compartment.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 LPG's Oracle ID (OCID).
- Is
Cross boolTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- Peer
Advertised stringCidr - The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See
peerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
- Peer
Advertised List<string>Cidr Details - The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is
null
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
] - Peer
Id string - The OCID of the peered LPG
- Peering
Status string - Whether the LPG is peered with another LPG.
NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted. - Peering
Status stringDetails - Additional information regarding the peering status, if applicable.
- Route
Table stringId - The OCID of the route table the LPG is using.
- State string
- The LPG's current lifecycle state.
- Time
Created string - The date and time the LPG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vcn
Id string - The OCID of the VCN.
- Compartment
Id string - The OCID of the compartment.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 LPG's Oracle ID (OCID).
- Is
Cross boolTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- Peer
Advertised stringCidr - The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See
peerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
- Peer
Advertised []stringCidr Details - The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is
null
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
] - Peer
Id string - The OCID of the peered LPG
- Peering
Status string - Whether the LPG is peered with another LPG.
NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted. - Peering
Status stringDetails - Additional information regarding the peering status, if applicable.
- Route
Table stringId - The OCID of the route table the LPG is using.
- State string
- The LPG's current lifecycle state.
- Time
Created string - The date and time the LPG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vcn
Id string - The OCID of the VCN.
- compartment
Id String - The OCID of the compartment.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 LPG's Oracle ID (OCID).
- is
Cross BooleanTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer
Advertised StringCidr - The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See
peerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
- peer
Advertised List<String>Cidr Details - The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is
null
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
] - peer
Id String - The OCID of the peered LPG
- peering
Status String - Whether the LPG is peered with another LPG.
NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted. - peering
Status StringDetails - Additional information regarding the peering status, if applicable.
- route
Table StringId - The OCID of the route table the LPG is using.
- state String
- The LPG's current lifecycle state.
- time
Created String - The date and time the LPG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id String - The OCID of the VCN.
- compartment
Id string - The OCID of the compartment.
- {[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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 LPG's Oracle ID (OCID).
- is
Cross booleanTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer
Advertised stringCidr - The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See
peerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
- peer
Advertised string[]Cidr Details - The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is
null
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
] - peer
Id string - The OCID of the peered LPG
- peering
Status string - Whether the LPG is peered with another LPG.
NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted. - peering
Status stringDetails - Additional information regarding the peering status, if applicable.
- route
Table stringId - The OCID of the route table the LPG is using.
- state string
- The LPG's current lifecycle state.
- time
Created string - The date and time the LPG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id string - The OCID of the VCN.
- compartment_
id str - The OCID of the compartment.
- 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.
- 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 LPG's Oracle ID (OCID).
- is_
cross_ booltenancy_ peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer_
advertised_ strcidr - The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See
peerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
- peer_
advertised_ Sequence[str]cidr_ details - The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is
null
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
] - peer_
id str - The OCID of the peered LPG
- peering_
status str - Whether the LPG is peered with another LPG.
NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted. - peering_
status_ strdetails - Additional information regarding the peering status, if applicable.
- route_
table_ strid - The OCID of the route table the LPG is using.
- state str
- The LPG's current lifecycle state.
- time_
created str - The date and time the LPG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn_
id str - The OCID of the VCN.
- compartment
Id String - The OCID of the compartment.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 LPG's Oracle ID (OCID).
- is
Cross BooleanTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer
Advertised StringCidr - The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG. See
peerAdvertisedCidrDetails
for the individual CIDRs. The value isnull
if the LPG is not peered. Example:192.168.0.0/16
, or if aggregated with172.16.0.0/24
then128.0.0.0/1
- peer
Advertised List<String>Cidr Details - The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG. The value is
null
if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet's traffic to this LPG. Example: [192.168.0.0/16
,172.16.0.0/24
] - peer
Id String - The OCID of the peered LPG
- peering
Status String - Whether the LPG is peered with another LPG.
NEW
means the LPG has not yet been peered.PENDING
means the peering is being established.REVOKED
means the LPG at the other end of the peering has been deleted. - peering
Status StringDetails - Additional information regarding the peering status, if applicable.
- route
Table StringId - The OCID of the route table the LPG is using.
- state String
- The LPG's current lifecycle state.
- time
Created String - The date and time the LPG was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id String - The OCID of the VCN.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi