Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getIpv6
Explore with Pulumi AI
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: testIpv6OciCoreIpv6.id,
});
import pulumi
import pulumi_oci as oci
test_ipv6 = oci.Core.get_ipv6(ipv6id=test_ipv6_oci_core_ipv6["id"])
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.GetIpv6(ctx, &core.GetIpv6Args{
Ipv6id: testIpv6OciCoreIpv6.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 = testIpv6OciCoreIpv6.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(testIpv6OciCoreIpv6.id())
.build());
}
}
variables:
testIpv6:
fn::invoke:
Function: oci:Core:getIpv6
Arguments:
ipv6id: ${testIpv6OciCoreIpv6.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:
getIpv6 Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
- Dictionary<string, string>
- 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, string>
- 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.
- Ip
Address string - The IPv6 address of the
IPv6
object. The address is within the IPv6 prefix of the VNIC's subnet (see theipv6CidrBlock
attribute for the Subnet object. Example:2001:0db8:0123:1111:abcd:ef01:2345:6789
- Ipv6id string
- Ipv6subnet
Cidr string - State string
- The IPv6's current state.
- Subnet
Id string - The OCID of the subnet the VNIC is in.
- Time
Created string - The date and time the IPv6 was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vnic
Id string - The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
- Compartment
Id string - The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
- map[string]string
- 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]string
- 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.
- Ip
Address string - The IPv6 address of the
IPv6
object. The address is within the IPv6 prefix of the VNIC's subnet (see theipv6CidrBlock
attribute for the Subnet object. Example:2001:0db8:0123:1111:abcd:ef01:2345:6789
- Ipv6id string
- Ipv6subnet
Cidr string - State string
- The IPv6's current state.
- Subnet
Id string - The OCID of the subnet the VNIC is in.
- Time
Created string - The date and time the IPv6 was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vnic
Id string - The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
- compartment
Id String - The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
- Map<String,String>
- 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,String>
- 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.
- ip
Address String - The IPv6 address of the
IPv6
object. The address is within the IPv6 prefix of the VNIC's subnet (see theipv6CidrBlock
attribute for the Subnet object. Example:2001:0db8:0123:1111:abcd:ef01:2345:6789
- ipv6id String
- ipv6subnet
Cidr String - state String
- The IPv6's current state.
- subnet
Id String - The OCID of the subnet the VNIC is in.
- time
Created String - The date and time the IPv6 was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vnic
Id String - The OCID of the VNIC the IPv6 is assigned to. The VNIC and IPv6 must be in the same subnet.
- compartment
Id string - The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
- {[key: string]: string}
- 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]: string}
- 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.
- ip
Address string - The IPv6 address of the
IPv6
object. The address is within the IPv6 prefix of the VNIC's subnet (see theipv6CidrBlock
attribute for the Subnet object. Example:2001:0db8:0123:1111:abcd:ef01:2345:6789
- ipv6id string
- ipv6subnet
Cidr string - state string
- The IPv6's current state.
- subnet
Id string - The OCID of the subnet the VNIC is in.
- time
Created string - The date and time the IPv6 was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vnic
Id 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.
- Mapping[str, str]
- 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, str]
- 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 theipv6CidrBlock
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.
- compartment
Id String - The OCID of the compartment containing the IPv6. This is the same as the VNIC's compartment.
- Map<String>
- 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>
- 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.
- ip
Address String - The IPv6 address of the
IPv6
object. The address is within the IPv6 prefix of the VNIC's subnet (see theipv6CidrBlock
attribute for the Subnet object. Example:2001:0db8:0123:1111:abcd:ef01:2345:6789
- ipv6id String
- ipv6subnet
Cidr String - state String
- The IPv6's current state.
- subnet
Id String - The OCID of the subnet the VNIC is in.
- time
Created String - The date and time the IPv6 was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vnic
Id 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.