1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getVirtualNetworks
Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi

oci.Core.getVirtualNetworks

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi

    Using getVirtualNetworks

    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 getVirtualNetworks(args: GetVirtualNetworksArgs, opts?: InvokeOptions): Promise<GetVirtualNetworksResult>
    function getVirtualNetworksOutput(args: GetVirtualNetworksOutputArgs, opts?: InvokeOptions): Output<GetVirtualNetworksResult>
    def get_virtual_networks(compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[_core.GetVirtualNetworksFilter]] = None,
                             state: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetVirtualNetworksResult
    def get_virtual_networks_output(compartment_id: Optional[pulumi.Input[str]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetVirtualNetworksFilterArgs]]]] = None,
                             state: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetVirtualNetworksResult]
    func GetVirtualNetworks(ctx *Context, args *GetVirtualNetworksArgs, opts ...InvokeOption) (*GetVirtualNetworksResult, error)
    func GetVirtualNetworksOutput(ctx *Context, args *GetVirtualNetworksOutputArgs, opts ...InvokeOption) GetVirtualNetworksResultOutput

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

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

    The following arguments are supported:

    getVirtualNetworks Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    VirtualNetworks List<GetVirtualNetworksVirtualNetwork>
    DisplayName string
    Filters List<GetVirtualNetworksFilter>
    State string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    VirtualNetworks []GetVirtualNetworksVirtualNetwork
    DisplayName string
    Filters []GetVirtualNetworksFilter
    State string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    virtualNetworks List<GetVirtualNetworksVirtualNetwork>
    displayName String
    filters List<GetVirtualNetworksFilter>
    state String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    virtualNetworks GetVirtualNetworksVirtualNetwork[]
    displayName string
    filters GetVirtualNetworksFilter[]
    state string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    virtualNetworks List<Property Map>
    displayName String
    filters List<Property Map>
    state String

    Supporting Types

    GetVirtualNetworksFilter

    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

    GetVirtualNetworksVirtualNetwork

    GetVirtualNetworksVirtualNetworkByoipv6cidrDetail

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi