1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getVirtualCircuitPublicPrefixes
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getVirtualCircuitPublicPrefixes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Virtual Circuit Public Prefixes in Oracle Cloud Infrastructure Core service.

    Lists the public IP prefixes and their details for the specified public virtual circuit.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVirtualCircuitPublicPrefixes = oci.Core.getVirtualCircuitPublicPrefixes({
        virtualCircuitId: testVirtualCircuit.id,
        verificationState: virtualCircuitPublicPrefixVerificationState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_virtual_circuit_public_prefixes = oci.Core.get_virtual_circuit_public_prefixes(virtual_circuit_id=test_virtual_circuit["id"],
        verification_state=virtual_circuit_public_prefix_verification_state)
    
    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.GetVirtualCircuitPublicPrefixes(ctx, &core.GetVirtualCircuitPublicPrefixesArgs{
    			VirtualCircuitId:  testVirtualCircuit.Id,
    			VerificationState: pulumi.StringRef(virtualCircuitPublicPrefixVerificationState),
    		}, 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 testVirtualCircuitPublicPrefixes = Oci.Core.GetVirtualCircuitPublicPrefixes.Invoke(new()
        {
            VirtualCircuitId = testVirtualCircuit.Id,
            VerificationState = virtualCircuitPublicPrefixVerificationState,
        });
    
    });
    
    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.GetVirtualCircuitPublicPrefixesArgs;
    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 testVirtualCircuitPublicPrefixes = CoreFunctions.getVirtualCircuitPublicPrefixes(GetVirtualCircuitPublicPrefixesArgs.builder()
                .virtualCircuitId(testVirtualCircuit.id())
                .verificationState(virtualCircuitPublicPrefixVerificationState)
                .build());
    
        }
    }
    
    variables:
      testVirtualCircuitPublicPrefixes:
        fn::invoke:
          Function: oci:Core:getVirtualCircuitPublicPrefixes
          Arguments:
            virtualCircuitId: ${testVirtualCircuit.id}
            verificationState: ${virtualCircuitPublicPrefixVerificationState}
    

    Using getVirtualCircuitPublicPrefixes

    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 getVirtualCircuitPublicPrefixes(args: GetVirtualCircuitPublicPrefixesArgs, opts?: InvokeOptions): Promise<GetVirtualCircuitPublicPrefixesResult>
    function getVirtualCircuitPublicPrefixesOutput(args: GetVirtualCircuitPublicPrefixesOutputArgs, opts?: InvokeOptions): Output<GetVirtualCircuitPublicPrefixesResult>
    def get_virtual_circuit_public_prefixes(filters: Optional[Sequence[_core.GetVirtualCircuitPublicPrefixesFilter]] = None,
                                            verification_state: Optional[str] = None,
                                            virtual_circuit_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetVirtualCircuitPublicPrefixesResult
    def get_virtual_circuit_public_prefixes_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetVirtualCircuitPublicPrefixesFilterArgs]]]] = None,
                                            verification_state: Optional[pulumi.Input[str]] = None,
                                            virtual_circuit_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetVirtualCircuitPublicPrefixesResult]
    func GetVirtualCircuitPublicPrefixes(ctx *Context, args *GetVirtualCircuitPublicPrefixesArgs, opts ...InvokeOption) (*GetVirtualCircuitPublicPrefixesResult, error)
    func GetVirtualCircuitPublicPrefixesOutput(ctx *Context, args *GetVirtualCircuitPublicPrefixesOutputArgs, opts ...InvokeOption) GetVirtualCircuitPublicPrefixesResultOutput

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

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

    The following arguments are supported:

    VirtualCircuitId string
    The OCID of the virtual circuit.
    Filters List<GetVirtualCircuitPublicPrefixesFilter>
    VerificationState string

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    VirtualCircuitId string
    The OCID of the virtual circuit.
    Filters []GetVirtualCircuitPublicPrefixesFilter
    VerificationState string

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    virtualCircuitId String
    The OCID of the virtual circuit.
    filters List<GetVirtualCircuitPublicPrefixesFilter>
    verificationState String

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    virtualCircuitId string
    The OCID of the virtual circuit.
    filters GetVirtualCircuitPublicPrefixesFilter[]
    verificationState string

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    virtual_circuit_id str
    The OCID of the virtual circuit.
    filters Sequence[core.GetVirtualCircuitPublicPrefixesFilter]
    verification_state str

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    virtualCircuitId String
    The OCID of the virtual circuit.
    filters List<Property Map>
    verificationState String

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    getVirtualCircuitPublicPrefixes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VirtualCircuitId string
    VirtualCircuitPublicPrefixes List<GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix>
    The list of virtual_circuit_public_prefixes.
    Filters List<GetVirtualCircuitPublicPrefixesFilter>
    VerificationState string
    Oracle must verify that the customer owns the public IP prefix before traffic for that prefix can flow across the virtual circuit. Verification can take a few business days. IN_PROGRESS means Oracle is verifying the prefix. COMPLETED means verification succeeded. FAILED means verification failed and traffic for this prefix will not flow across the connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    VirtualCircuitId string
    VirtualCircuitPublicPrefixes []GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix
    The list of virtual_circuit_public_prefixes.
    Filters []GetVirtualCircuitPublicPrefixesFilter
    VerificationState string
    Oracle must verify that the customer owns the public IP prefix before traffic for that prefix can flow across the virtual circuit. Verification can take a few business days. IN_PROGRESS means Oracle is verifying the prefix. COMPLETED means verification succeeded. FAILED means verification failed and traffic for this prefix will not flow across the connection.
    id String
    The provider-assigned unique ID for this managed resource.
    virtualCircuitId String
    virtualCircuitPublicPrefixes List<GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix>
    The list of virtual_circuit_public_prefixes.
    filters List<GetVirtualCircuitPublicPrefixesFilter>
    verificationState String
    Oracle must verify that the customer owns the public IP prefix before traffic for that prefix can flow across the virtual circuit. Verification can take a few business days. IN_PROGRESS means Oracle is verifying the prefix. COMPLETED means verification succeeded. FAILED means verification failed and traffic for this prefix will not flow across the connection.
    id string
    The provider-assigned unique ID for this managed resource.
    virtualCircuitId string
    virtualCircuitPublicPrefixes GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix[]
    The list of virtual_circuit_public_prefixes.
    filters GetVirtualCircuitPublicPrefixesFilter[]
    verificationState string
    Oracle must verify that the customer owns the public IP prefix before traffic for that prefix can flow across the virtual circuit. Verification can take a few business days. IN_PROGRESS means Oracle is verifying the prefix. COMPLETED means verification succeeded. FAILED means verification failed and traffic for this prefix will not flow across the connection.
    id str
    The provider-assigned unique ID for this managed resource.
    virtual_circuit_id str
    virtual_circuit_public_prefixes Sequence[core.GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix]
    The list of virtual_circuit_public_prefixes.
    filters Sequence[core.GetVirtualCircuitPublicPrefixesFilter]
    verification_state str
    Oracle must verify that the customer owns the public IP prefix before traffic for that prefix can flow across the virtual circuit. Verification can take a few business days. IN_PROGRESS means Oracle is verifying the prefix. COMPLETED means verification succeeded. FAILED means verification failed and traffic for this prefix will not flow across the connection.
    id String
    The provider-assigned unique ID for this managed resource.
    virtualCircuitId String
    virtualCircuitPublicPrefixes List<Property Map>
    The list of virtual_circuit_public_prefixes.
    filters List<Property Map>
    verificationState String
    Oracle must verify that the customer owns the public IP prefix before traffic for that prefix can flow across the virtual circuit. Verification can take a few business days. IN_PROGRESS means Oracle is verifying the prefix. COMPLETED means verification succeeded. FAILED means verification failed and traffic for this prefix will not flow across the connection.

    Supporting Types

    GetVirtualCircuitPublicPrefixesFilter

    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

    GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix

    CidrBlock string
    Publix IP prefix (CIDR) that the customer specified.
    VerificationState string

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    CidrBlock string
    Publix IP prefix (CIDR) that the customer specified.
    VerificationState string

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    cidrBlock String
    Publix IP prefix (CIDR) that the customer specified.
    verificationState String

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    cidrBlock string
    Publix IP prefix (CIDR) that the customer specified.
    verificationState string

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    cidr_block str
    Publix IP prefix (CIDR) that the customer specified.
    verification_state str

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    cidrBlock String
    Publix IP prefix (CIDR) that the customer specified.
    verificationState String

    A filter to only return resources that match the given verification state.

    The state value is case-insensitive.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi