Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getPublicIpPools
Explore with Pulumi AI
This data source provides the list of Public Ip Pools in Oracle Cloud Infrastructure Core service.
Lists the public IP pools in the specified compartment. You can filter the list using query parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPublicIpPools = oci.Core.getPublicIpPools({
compartmentId: compartmentId,
byoipRangeId: testByoipRange.id,
displayName: publicIpPoolDisplayName,
});
import pulumi
import pulumi_oci as oci
test_public_ip_pools = oci.Core.get_public_ip_pools(compartment_id=compartment_id,
byoip_range_id=test_byoip_range["id"],
display_name=public_ip_pool_display_name)
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.GetPublicIpPools(ctx, &core.GetPublicIpPoolsArgs{
CompartmentId: compartmentId,
ByoipRangeId: pulumi.StringRef(testByoipRange.Id),
DisplayName: pulumi.StringRef(publicIpPoolDisplayName),
}, 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 testPublicIpPools = Oci.Core.GetPublicIpPools.Invoke(new()
{
CompartmentId = compartmentId,
ByoipRangeId = testByoipRange.Id,
DisplayName = publicIpPoolDisplayName,
});
});
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.GetPublicIpPoolsArgs;
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 testPublicIpPools = CoreFunctions.getPublicIpPools(GetPublicIpPoolsArgs.builder()
.compartmentId(compartmentId)
.byoipRangeId(testByoipRange.id())
.displayName(publicIpPoolDisplayName)
.build());
}
}
variables:
testPublicIpPools:
fn::invoke:
Function: oci:Core:getPublicIpPools
Arguments:
compartmentId: ${compartmentId}
byoipRangeId: ${testByoipRange.id}
displayName: ${publicIpPoolDisplayName}
Using getPublicIpPools
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 getPublicIpPools(args: GetPublicIpPoolsArgs, opts?: InvokeOptions): Promise<GetPublicIpPoolsResult>
function getPublicIpPoolsOutput(args: GetPublicIpPoolsOutputArgs, opts?: InvokeOptions): Output<GetPublicIpPoolsResult>
def get_public_ip_pools(byoip_range_id: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetPublicIpPoolsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetPublicIpPoolsResult
def get_public_ip_pools_output(byoip_range_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetPublicIpPoolsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpPoolsResult]
func GetPublicIpPools(ctx *Context, args *GetPublicIpPoolsArgs, opts ...InvokeOption) (*GetPublicIpPoolsResult, error)
func GetPublicIpPoolsOutput(ctx *Context, args *GetPublicIpPoolsOutputArgs, opts ...InvokeOption) GetPublicIpPoolsResultOutput
> Note: This function is named GetPublicIpPools
in the Go SDK.
public static class GetPublicIpPools
{
public static Task<GetPublicIpPoolsResult> InvokeAsync(GetPublicIpPoolsArgs args, InvokeOptions? opts = null)
public static Output<GetPublicIpPoolsResult> Invoke(GetPublicIpPoolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPublicIpPoolsResult> getPublicIpPools(GetPublicIpPoolsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getPublicIpPools:getPublicIpPools
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Byoip
Range stringId - A filter to return only resources that match the given BYOIP CIDR block.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Public Ip Pools Filter>
- Compartment
Id string - The OCID of the compartment.
- Byoip
Range stringId - A filter to return only resources that match the given BYOIP CIDR block.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Public Ip Pools Filter
- compartment
Id String - The OCID of the compartment.
- byoip
Range StringId - A filter to return only resources that match the given BYOIP CIDR block.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Public Ip Pools Filter>
- compartment
Id string - The OCID of the compartment.
- byoip
Range stringId - A filter to return only resources that match the given BYOIP CIDR block.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Public Ip Pools Filter[]
- compartment_
id str - The OCID of the compartment.
- byoip_
range_ strid - A filter to return only resources that match the given BYOIP CIDR block.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[core.
Get Public Ip Pools Filter]
- compartment
Id String - The OCID of the compartment.
- byoip
Range StringId - A filter to return only resources that match the given BYOIP CIDR block.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
getPublicIpPools Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing this pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Ip List<GetPool Collections Public Ip Pools Public Ip Pool Collection> - The list of public_ip_pool_collection.
- Byoip
Range stringId - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Public Ip Pools Filter>
- Compartment
Id string - The OCID of the compartment containing this pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Ip []GetPool Collections Public Ip Pools Public Ip Pool Collection - The list of public_ip_pool_collection.
- Byoip
Range stringId - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Public Ip Pools Filter
- compartment
Id String - The OCID of the compartment containing this pool.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Ip List<GetPool Collections Public Ip Pools Public Ip Pool Collection> - The list of public_ip_pool_collection.
- byoip
Range StringId - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Public Ip Pools Filter>
- compartment
Id string - The OCID of the compartment containing this pool.
- id string
- The provider-assigned unique ID for this managed resource.
- public
Ip GetPool Collections Public Ip Pools Public Ip Pool Collection[] - The list of public_ip_pool_collection.
- byoip
Range stringId - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Public Ip Pools Filter[]
- compartment_
id str - The OCID of the compartment containing this pool.
- id str
- The provider-assigned unique ID for this managed resource.
- public_
ip_ Sequence[core.pool_ collections Get Public Ip Pools Public Ip Pool Collection] - The list of public_ip_pool_collection.
- byoip_
range_ strid - display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[core.
Get Public Ip Pools Filter]
- compartment
Id String - The OCID of the compartment containing this pool.
- id String
- The provider-assigned unique ID for this managed resource.
- public
Ip List<Property Map>Pool Collections - The list of public_ip_pool_collection.
- byoip
Range StringId - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
Supporting Types
GetPublicIpPoolsFilter
GetPublicIpPoolsPublicIpPoolCollection
GetPublicIpPoolsPublicIpPoolCollectionItem
- 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.
- 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 filter to return only resources that match the given display name exactly.
- 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 public IP pool.
- 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.
- 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 filter to return only resources that match the given display name exactly.
- 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 public IP pool.
- 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.
- 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 filter to return only resources that match the given display name exactly.
- 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 public IP pool.
- 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.
- {[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 filter to return only resources that match the given display name exactly.
- {[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 public IP pool.
- 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.
- 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 filter to return only resources that match the given display name exactly.
- 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 public IP pool.
- 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.
- 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 filter to return only resources that match the given display name exactly.
- 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 public IP pool.
- 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.