1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpv6
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.getIpv6

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Ipv6 resource in Oracle Cloud Infrastructure Core service.

    Gets the specified IPv6. You must specify the object’s OCID. Alternatively, you can get the object by using ListIpv6s with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testIpv6 = oci.Core.getIpv6({
        ipv6id: oci_core_ipv6.test_ipv6.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ipv6 = oci.Core.get_ipv6(ipv6id=oci_core_ipv6["test_ipv6"]["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.GetIpv6(ctx, &core.GetIpv6Args{
    			Ipv6id: oci_core_ipv6.Test_ipv6.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 testIpv6 = Oci.Core.GetIpv6.Invoke(new()
        {
            Ipv6id = oci_core_ipv6.Test_ipv6.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.GetIpv6Args;
    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 testIpv6 = CoreFunctions.getIpv6(GetIpv6Args.builder()
                .ipv6id(oci_core_ipv6.test_ipv6().id())
                .build());
    
        }
    }
    
    variables:
      testIpv6:
        fn::invoke:
          Function: oci:Core:getIpv6
          Arguments:
            ipv6id: ${oci_core_ipv6.test_ipv6.id}
    

    Using getIpv6

    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 getIpv6(args: GetIpv6Args, opts?: InvokeOptions): Promise<GetIpv6Result>
    function getIpv6Output(args: GetIpv6OutputArgs, opts?: InvokeOptions): Output<GetIpv6Result>
    def get_ipv6(ipv6id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetIpv6Result
    def get_ipv6_output(ipv6id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetIpv6Result]
    func GetIpv6(ctx *Context, args *GetIpv6Args, opts ...InvokeOption) (*GetIpv6Result, error)
    func GetIpv6Output(ctx *Context, args *GetIpv6OutputArgs, opts ...InvokeOption) GetIpv6ResultOutput

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

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

    The following arguments are supported:

    Ipv6id string
    The OCID of the IPv6.
    Ipv6id string
    The OCID of the IPv6.
    ipv6id String
    The OCID of the IPv6.
    ipv6id string
    The OCID of the IPv6.
    ipv6id str
    The OCID of the IPv6.
    ipv6id String
    The OCID of the IPv6.

    getIpv6 Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
    DefinedTags 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"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags 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 OCID of the IPv6.
    IpAddress string
    The IPv6 address of the IPv6 object. The address is within the IPv6 prefix of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object. Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789
    Ipv6id string
    Ipv6subnetCidr string
    State string
    The IPv6's current state.
    SubnetId string
    The OCID of the subnet the VNIC is in.
    TimeCreated string
    The date and time the IPv6 was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    VnicId string
    The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
    CompartmentId string
    The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
    DefinedTags 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"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags 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 OCID of the IPv6.
    IpAddress string
    The IPv6 address of the IPv6 object. The address is within the IPv6 prefix of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object. Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789
    Ipv6id string
    Ipv6subnetCidr string
    State string
    The IPv6's current state.
    SubnetId string
    The OCID of the subnet the VNIC is in.
    TimeCreated string
    The date and time the IPv6 was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    VnicId string
    The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
    compartmentId String
    The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
    definedTags 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"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags 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 OCID of the IPv6.
    ipAddress String
    The IPv6 address of the IPv6 object. The address is within the IPv6 prefix of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object. Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789
    ipv6id String
    ipv6subnetCidr String
    state String
    The IPv6's current state.
    subnetId String
    The OCID of the subnet the VNIC is in.
    timeCreated String
    The date and time the IPv6 was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vnicId String
    The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
    compartmentId string
    The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
    definedTags {[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"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[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 OCID of the IPv6.
    ipAddress string
    The IPv6 address of the IPv6 object. The address is within the IPv6 prefix of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object. Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789
    ipv6id string
    ipv6subnetCidr string
    state string
    The IPv6's current state.
    subnetId string
    The OCID of the subnet the VNIC is in.
    timeCreated string
    The date and time the IPv6 was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vnicId string
    The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
    compartment_id str
    The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
    defined_tags 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.
    freeform_tags 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 OCID of the IPv6.
    ip_address str
    The IPv6 address of the IPv6 object. The address is within the IPv6 prefix of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object. Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789
    ipv6id str
    ipv6subnet_cidr str
    state str
    The IPv6's current state.
    subnet_id str
    The OCID of the subnet the VNIC is in.
    time_created str
    The date and time the IPv6 was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vnic_id str
    The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
    compartmentId String
    The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
    definedTags 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"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags 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 OCID of the IPv6.
    ipAddress String
    The IPv6 address of the IPv6 object. The address is within the IPv6 prefix of the VNIC's subnet (see the ipv6CidrBlock attribute for the Subnet object. Example: 2001:0db8:0123:1111:abcd:ef01:2345:6789
    ipv6id String
    ipv6subnetCidr String
    state String
    The IPv6's current state.
    subnetId String
    The OCID of the subnet the VNIC is in.
    timeCreated String
    The date and time the IPv6 was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vnicId String
    The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi