oci.Core.getVirtualCircuitPublicPrefixes
Explore with Pulumi AI
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/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:
- Virtual
Circuit stringId - The OCID of the virtual circuit.
- Filters
List<Get
Virtual Circuit Public Prefixes Filter> - Verification
State string A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- Virtual
Circuit stringId - The OCID of the virtual circuit.
- Filters
[]Get
Virtual Circuit Public Prefixes Filter - Verification
State string A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- virtual
Circuit StringId - The OCID of the virtual circuit.
- filters
List<Get
Virtual Circuit Public Prefixes Filter> - verification
State String A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- virtual
Circuit stringId - The OCID of the virtual circuit.
- filters
Get
Virtual Circuit Public Prefixes Filter[] - verification
State string A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- virtual_
circuit_ strid - The OCID of the virtual circuit.
- filters
Sequence[core.
Get Virtual Circuit Public Prefixes Filter] - verification_
state str A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- virtual
Circuit StringId - The OCID of the virtual circuit.
- filters List<Property Map>
- verification
State 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.
- Virtual
Circuit stringId - Virtual
Circuit List<GetPublic Prefixes Virtual Circuit Public Prefixes Virtual Circuit Public Prefix> - The list of virtual_circuit_public_prefixes.
- Filters
List<Get
Virtual Circuit Public Prefixes Filter> - Verification
State 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.
- Virtual
Circuit stringId - Virtual
Circuit []GetPublic Prefixes Virtual Circuit Public Prefixes Virtual Circuit Public Prefix - The list of virtual_circuit_public_prefixes.
- Filters
[]Get
Virtual Circuit Public Prefixes Filter - Verification
State 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.
- virtual
Circuit StringId - virtual
Circuit List<GetPublic Prefixes Virtual Circuit Public Prefixes Virtual Circuit Public Prefix> - The list of virtual_circuit_public_prefixes.
- filters
List<Get
Virtual Circuit Public Prefixes Filter> - verification
State 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.
- virtual
Circuit stringId - virtual
Circuit GetPublic Prefixes Virtual Circuit Public Prefixes Virtual Circuit Public Prefix[] - The list of virtual_circuit_public_prefixes.
- filters
Get
Virtual Circuit Public Prefixes Filter[] - verification
State 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_ strid - virtual_
circuit_ Sequence[core.public_ prefixes Get Virtual Circuit Public Prefixes Virtual Circuit Public Prefix] - The list of virtual_circuit_public_prefixes.
- filters
Sequence[core.
Get Virtual Circuit Public Prefixes Filter] - 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.
- virtual
Circuit StringId - virtual
Circuit List<Property Map>Public Prefixes - The list of virtual_circuit_public_prefixes.
- filters List<Property Map>
- verification
State 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
GetVirtualCircuitPublicPrefixesVirtualCircuitPublicPrefix
- Cidr
Block string - Publix IP prefix (CIDR) that the customer specified.
- Verification
State string A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- Cidr
Block string - Publix IP prefix (CIDR) that the customer specified.
- Verification
State string A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- cidr
Block String - Publix IP prefix (CIDR) that the customer specified.
- verification
State String A filter to only return resources that match the given verification state.
The state value is case-insensitive.
- cidr
Block string - Publix IP prefix (CIDR) that the customer specified.
- verification
State 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.
- cidr
Block String - Publix IP prefix (CIDR) that the customer specified.
- verification
State 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.