Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Core.getPublicIpPool
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Public Ip Pool resource in Oracle Cloud Infrastructure Core service.
Gets the specified PublicIpPool
object. You must specify the object’s OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPublicIpPool = oci.Core.getPublicIpPool({
publicIpPoolId: testPublicIpPoolOciCorePublicIpPool.id,
});
import pulumi
import pulumi_oci as oci
test_public_ip_pool = oci.Core.get_public_ip_pool(public_ip_pool_id=test_public_ip_pool_oci_core_public_ip_pool["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.GetPublicIpPool(ctx, &core.GetPublicIpPoolArgs{
PublicIpPoolId: testPublicIpPoolOciCorePublicIpPool.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 testPublicIpPool = Oci.Core.GetPublicIpPool.Invoke(new()
{
PublicIpPoolId = testPublicIpPoolOciCorePublicIpPool.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.GetPublicIpPoolArgs;
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 testPublicIpPool = CoreFunctions.getPublicIpPool(GetPublicIpPoolArgs.builder()
.publicIpPoolId(testPublicIpPoolOciCorePublicIpPool.id())
.build());
}
}
variables:
testPublicIpPool:
fn::invoke:
Function: oci:Core:getPublicIpPool
Arguments:
publicIpPoolId: ${testPublicIpPoolOciCorePublicIpPool.id}
Using getPublicIpPool
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 getPublicIpPool(args: GetPublicIpPoolArgs, opts?: InvokeOptions): Promise<GetPublicIpPoolResult>
function getPublicIpPoolOutput(args: GetPublicIpPoolOutputArgs, opts?: InvokeOptions): Output<GetPublicIpPoolResult>
def get_public_ip_pool(public_ip_pool_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPublicIpPoolResult
def get_public_ip_pool_output(public_ip_pool_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpPoolResult]
func GetPublicIpPool(ctx *Context, args *GetPublicIpPoolArgs, opts ...InvokeOption) (*GetPublicIpPoolResult, error)
func GetPublicIpPoolOutput(ctx *Context, args *GetPublicIpPoolOutputArgs, opts ...InvokeOption) GetPublicIpPoolResultOutput
> Note: This function is named GetPublicIpPool
in the Go SDK.
public static class GetPublicIpPool
{
public static Task<GetPublicIpPoolResult> InvokeAsync(GetPublicIpPoolArgs args, InvokeOptions? opts = null)
public static Output<GetPublicIpPoolResult> Invoke(GetPublicIpPoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPublicIpPoolResult> getPublicIpPool(GetPublicIpPoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getPublicIpPool:getPublicIpPool
arguments:
# arguments dictionary
The following arguments are supported:
- Public
Ip stringPool Id - The OCID of the public IP pool.
- Public
Ip stringPool Id - The OCID of the public IP pool.
- public
Ip StringPool Id - The OCID of the public IP pool.
- public
Ip stringPool Id - The OCID of the public IP pool.
- public_
ip_ strpool_ id - The OCID of the public IP pool.
- public
Ip StringPool Id - The OCID of the public IP pool.
getPublicIpPool Result
The following output properties are available:
- Cidr
Blocks List<string> - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- Compartment
Id string - The OCID of the compartment containing this pool.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 public IP pool.
- Public
Ip stringPool Id - State string
- The public IP pool's current state.
- Time
Created string - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Cidr
Blocks []string - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- Compartment
Id string - The OCID of the compartment containing this pool.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 public IP pool.
- Public
Ip stringPool Id - State string
- The public IP pool's current state.
- Time
Created string - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr
Blocks List<String> - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment
Id String - The OCID of the compartment containing this pool.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 public IP pool.
- public
Ip StringPool Id - state String
- The public IP pool's current state.
- time
Created String - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr
Blocks string[] - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment
Id string - The OCID of the compartment containing this pool.
- {[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"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 public IP pool.
- public
Ip stringPool Id - state string
- The public IP pool's current state.
- time
Created string - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr_
blocks Sequence[str] - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment_
id str - The OCID of the compartment containing this pool.
- 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.
- 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 public IP pool.
- public_
ip_ strpool_ id - state str
- The public IP pool's current state.
- time_
created str - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- cidr
Blocks List<String> - The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.
- compartment
Id String - The OCID of the compartment containing this pool.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 public IP pool.
- public
Ip StringPool Id - state String
- The public IP pool's current state.
- time
Created String - The date and time the public IP pool was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi