spectrocloud.PrivatecloudgatewayIppool
Explore with Pulumi AI
A Resource to manage IP pools for Private Cloud Gateway.
You can learn more about Private Cloud Gateways IP Pools by revewing the Create and Manage IPAM Node Pools guide.
Example Usage
An example of creating an IP Pool for a Private Cloud Gateway using a range of IP addresses and restricting the IP Pool to a single cluster.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const pcg = spectrocloud.getPrivateCloudGateway({
name: "wst-1-pcg",
});
const ippool = new spectrocloud.PrivatecloudgatewayIppool("ippool", {
gateway: "192.168.1.1",
networkType: "range",
prefix: 24,
privateCloudGatewayId: pcg.then(pcg => pcg.id),
ipStartRange: "192.168.1.10",
ipEndRange: "192.168.1.100",
nameserverAddresses: ["192.168.1.8"],
restrictToSingleCluster: true,
});
import pulumi
import pulumi_spectrocloud as spectrocloud
pcg = spectrocloud.get_private_cloud_gateway(name="wst-1-pcg")
ippool = spectrocloud.PrivatecloudgatewayIppool("ippool",
gateway="192.168.1.1",
network_type="range",
prefix=24,
private_cloud_gateway_id=pcg.id,
ip_start_range="192.168.1.10",
ip_end_range="192.168.1.100",
nameserver_addresses=["192.168.1.8"],
restrict_to_single_cluster=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
pcg, err := spectrocloud.GetPrivateCloudGateway(ctx, &spectrocloud.GetPrivateCloudGatewayArgs{
Name: pulumi.StringRef("wst-1-pcg"),
}, nil)
if err != nil {
return err
}
_, err = spectrocloud.NewPrivatecloudgatewayIppool(ctx, "ippool", &spectrocloud.PrivatecloudgatewayIppoolArgs{
Gateway: pulumi.String("192.168.1.1"),
NetworkType: pulumi.String("range"),
Prefix: pulumi.Float64(24),
PrivateCloudGatewayId: pulumi.String(pcg.Id),
IpStartRange: pulumi.String("192.168.1.10"),
IpEndRange: pulumi.String("192.168.1.100"),
NameserverAddresses: pulumi.StringArray{
pulumi.String("192.168.1.8"),
},
RestrictToSingleCluster: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var pcg = Spectrocloud.GetPrivateCloudGateway.Invoke(new()
{
Name = "wst-1-pcg",
});
var ippool = new Spectrocloud.PrivatecloudgatewayIppool("ippool", new()
{
Gateway = "192.168.1.1",
NetworkType = "range",
Prefix = 24,
PrivateCloudGatewayId = pcg.Apply(getPrivateCloudGatewayResult => getPrivateCloudGatewayResult.Id),
IpStartRange = "192.168.1.10",
IpEndRange = "192.168.1.100",
NameserverAddresses = new[]
{
"192.168.1.8",
},
RestrictToSingleCluster = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetPrivateCloudGatewayArgs;
import com.pulumi.spectrocloud.PrivatecloudgatewayIppool;
import com.pulumi.spectrocloud.PrivatecloudgatewayIppoolArgs;
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 pcg = SpectrocloudFunctions.getPrivateCloudGateway(GetPrivateCloudGatewayArgs.builder()
.name("wst-1-pcg")
.build());
var ippool = new PrivatecloudgatewayIppool("ippool", PrivatecloudgatewayIppoolArgs.builder()
.gateway("192.168.1.1")
.networkType("range")
.prefix("24")
.privateCloudGatewayId(pcg.applyValue(getPrivateCloudGatewayResult -> getPrivateCloudGatewayResult.id()))
.ipStartRange("192.168.1.10")
.ipEndRange("192.168.1.100")
.nameserverAddresses("192.168.1.8")
.restrictToSingleCluster(true)
.build());
}
}
resources:
ippool:
type: spectrocloud:PrivatecloudgatewayIppool
properties:
gateway: 192.168.1.1
networkType: range
prefix: '24'
privateCloudGatewayId: ${pcg.id}
ipStartRange: 192.168.1.10
ipEndRange: 192.168.1.100
nameserverAddresses:
- 192.168.1.8
restrictToSingleCluster: true
variables:
pcg:
fn::invoke:
function: spectrocloud:getPrivateCloudGateway
arguments:
name: wst-1-pcg
An example of creating an IP Pool for a Private Cloud Gateway using a subnet of IP addresses.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const pcg = spectrocloud.getPrivateCloudGateway({
name: "east-3-pcg",
});
const ippool = new spectrocloud.PrivatecloudgatewayIppool("ippool", {
gateway: "10.10.192.1",
networkType: "subnet",
prefix: 24,
subnetCidr: "10.10.100.0/24",
privateCloudGatewayId: pcg.then(pcg => pcg.id),
nameserverAddresses: ["192.168.1.8"],
});
import pulumi
import pulumi_spectrocloud as spectrocloud
pcg = spectrocloud.get_private_cloud_gateway(name="east-3-pcg")
ippool = spectrocloud.PrivatecloudgatewayIppool("ippool",
gateway="10.10.192.1",
network_type="subnet",
prefix=24,
subnet_cidr="10.10.100.0/24",
private_cloud_gateway_id=pcg.id,
nameserver_addresses=["192.168.1.8"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
pcg, err := spectrocloud.GetPrivateCloudGateway(ctx, &spectrocloud.GetPrivateCloudGatewayArgs{
Name: pulumi.StringRef("east-3-pcg"),
}, nil)
if err != nil {
return err
}
_, err = spectrocloud.NewPrivatecloudgatewayIppool(ctx, "ippool", &spectrocloud.PrivatecloudgatewayIppoolArgs{
Gateway: pulumi.String("10.10.192.1"),
NetworkType: pulumi.String("subnet"),
Prefix: pulumi.Float64(24),
SubnetCidr: pulumi.String("10.10.100.0/24"),
PrivateCloudGatewayId: pulumi.String(pcg.Id),
NameserverAddresses: pulumi.StringArray{
pulumi.String("192.168.1.8"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var pcg = Spectrocloud.GetPrivateCloudGateway.Invoke(new()
{
Name = "east-3-pcg",
});
var ippool = new Spectrocloud.PrivatecloudgatewayIppool("ippool", new()
{
Gateway = "10.10.192.1",
NetworkType = "subnet",
Prefix = 24,
SubnetCidr = "10.10.100.0/24",
PrivateCloudGatewayId = pcg.Apply(getPrivateCloudGatewayResult => getPrivateCloudGatewayResult.Id),
NameserverAddresses = new[]
{
"192.168.1.8",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetPrivateCloudGatewayArgs;
import com.pulumi.spectrocloud.PrivatecloudgatewayIppool;
import com.pulumi.spectrocloud.PrivatecloudgatewayIppoolArgs;
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 pcg = SpectrocloudFunctions.getPrivateCloudGateway(GetPrivateCloudGatewayArgs.builder()
.name("east-3-pcg")
.build());
var ippool = new PrivatecloudgatewayIppool("ippool", PrivatecloudgatewayIppoolArgs.builder()
.gateway("10.10.192.1")
.networkType("subnet")
.prefix("24")
.subnetCidr("10.10.100.0/24")
.privateCloudGatewayId(pcg.applyValue(getPrivateCloudGatewayResult -> getPrivateCloudGatewayResult.id()))
.nameserverAddresses("192.168.1.8")
.build());
}
}
resources:
ippool:
type: spectrocloud:PrivatecloudgatewayIppool
properties:
gateway: 10.10.192.1
networkType: subnet
prefix: '24'
subnetCidr: 10.10.100.0/24
privateCloudGatewayId: ${pcg.id}
nameserverAddresses:
- 192.168.1.8
variables:
pcg:
fn::invoke:
function: spectrocloud:getPrivateCloudGateway
arguments:
name: east-3-pcg
Create PrivatecloudgatewayIppool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivatecloudgatewayIppool(name: string, args: PrivatecloudgatewayIppoolArgs, opts?: CustomResourceOptions);
@overload
def PrivatecloudgatewayIppool(resource_name: str,
args: PrivatecloudgatewayIppoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivatecloudgatewayIppool(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_type: Optional[str] = None,
private_cloud_gateway_id: Optional[str] = None,
prefix: Optional[float] = None,
gateway: Optional[str] = None,
name: Optional[str] = None,
nameserver_search_suffixes: Optional[Sequence[str]] = None,
nameserver_addresses: Optional[Sequence[str]] = None,
ip_start_range: Optional[str] = None,
ip_end_range: Optional[str] = None,
privatecloudgateway_ippool_id: Optional[str] = None,
restrict_to_single_cluster: Optional[bool] = None,
subnet_cidr: Optional[str] = None,
timeouts: Optional[PrivatecloudgatewayIppoolTimeoutsArgs] = None)
func NewPrivatecloudgatewayIppool(ctx *Context, name string, args PrivatecloudgatewayIppoolArgs, opts ...ResourceOption) (*PrivatecloudgatewayIppool, error)
public PrivatecloudgatewayIppool(string name, PrivatecloudgatewayIppoolArgs args, CustomResourceOptions? opts = null)
public PrivatecloudgatewayIppool(String name, PrivatecloudgatewayIppoolArgs args)
public PrivatecloudgatewayIppool(String name, PrivatecloudgatewayIppoolArgs args, CustomResourceOptions options)
type: spectrocloud:PrivatecloudgatewayIppool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PrivatecloudgatewayIppoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PrivatecloudgatewayIppoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PrivatecloudgatewayIppoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivatecloudgatewayIppoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivatecloudgatewayIppoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var privatecloudgatewayIppoolResource = new Spectrocloud.PrivatecloudgatewayIppool("privatecloudgatewayIppoolResource", new()
{
NetworkType = "string",
PrivateCloudGatewayId = "string",
Prefix = 0,
Gateway = "string",
Name = "string",
NameserverSearchSuffixes = new[]
{
"string",
},
NameserverAddresses = new[]
{
"string",
},
IpStartRange = "string",
IpEndRange = "string",
PrivatecloudgatewayIppoolId = "string",
RestrictToSingleCluster = false,
SubnetCidr = "string",
Timeouts = new Spectrocloud.Inputs.PrivatecloudgatewayIppoolTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := spectrocloud.NewPrivatecloudgatewayIppool(ctx, "privatecloudgatewayIppoolResource", &spectrocloud.PrivatecloudgatewayIppoolArgs{
NetworkType: pulumi.String("string"),
PrivateCloudGatewayId: pulumi.String("string"),
Prefix: pulumi.Float64(0),
Gateway: pulumi.String("string"),
Name: pulumi.String("string"),
NameserverSearchSuffixes: pulumi.StringArray{
pulumi.String("string"),
},
NameserverAddresses: pulumi.StringArray{
pulumi.String("string"),
},
IpStartRange: pulumi.String("string"),
IpEndRange: pulumi.String("string"),
PrivatecloudgatewayIppoolId: pulumi.String("string"),
RestrictToSingleCluster: pulumi.Bool(false),
SubnetCidr: pulumi.String("string"),
Timeouts: &spectrocloud.PrivatecloudgatewayIppoolTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var privatecloudgatewayIppoolResource = new PrivatecloudgatewayIppool("privatecloudgatewayIppoolResource", PrivatecloudgatewayIppoolArgs.builder()
.networkType("string")
.privateCloudGatewayId("string")
.prefix(0)
.gateway("string")
.name("string")
.nameserverSearchSuffixes("string")
.nameserverAddresses("string")
.ipStartRange("string")
.ipEndRange("string")
.privatecloudgatewayIppoolId("string")
.restrictToSingleCluster(false)
.subnetCidr("string")
.timeouts(PrivatecloudgatewayIppoolTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
privatecloudgateway_ippool_resource = spectrocloud.PrivatecloudgatewayIppool("privatecloudgatewayIppoolResource",
network_type="string",
private_cloud_gateway_id="string",
prefix=0,
gateway="string",
name="string",
nameserver_search_suffixes=["string"],
nameserver_addresses=["string"],
ip_start_range="string",
ip_end_range="string",
privatecloudgateway_ippool_id="string",
restrict_to_single_cluster=False,
subnet_cidr="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const privatecloudgatewayIppoolResource = new spectrocloud.PrivatecloudgatewayIppool("privatecloudgatewayIppoolResource", {
networkType: "string",
privateCloudGatewayId: "string",
prefix: 0,
gateway: "string",
name: "string",
nameserverSearchSuffixes: ["string"],
nameserverAddresses: ["string"],
ipStartRange: "string",
ipEndRange: "string",
privatecloudgatewayIppoolId: "string",
restrictToSingleCluster: false,
subnetCidr: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: spectrocloud:PrivatecloudgatewayIppool
properties:
gateway: string
ipEndRange: string
ipStartRange: string
name: string
nameserverAddresses:
- string
nameserverSearchSuffixes:
- string
networkType: string
prefix: 0
privateCloudGatewayId: string
privatecloudgatewayIppoolId: string
restrictToSingleCluster: false
subnetCidr: string
timeouts:
create: string
delete: string
update: string
PrivatecloudgatewayIppool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PrivatecloudgatewayIppool resource accepts the following input properties:
- Gateway string
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- Network
Type string - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - Prefix double
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - Private
Cloud stringGateway Id - The ID of the Private Cloud Gateway.
- Ip
End stringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - Ip
Start stringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - Name string
- The name of the IP pool.
- Nameserver
Addresses List<string> - The list of nameserver IP addresses for the IP pool.
- Nameserver
Search List<string>Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - Privatecloudgateway
Ippool stringId - The ID of this resource.
- Restrict
To boolSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - Subnet
Cidr string - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - Timeouts
Privatecloudgateway
Ippool Timeouts
- Gateway string
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- Network
Type string - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - Prefix float64
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - Private
Cloud stringGateway Id - The ID of the Private Cloud Gateway.
- Ip
End stringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - Ip
Start stringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - Name string
- The name of the IP pool.
- Nameserver
Addresses []string - The list of nameserver IP addresses for the IP pool.
- Nameserver
Search []stringSuffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - Privatecloudgateway
Ippool stringId - The ID of this resource.
- Restrict
To boolSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - Subnet
Cidr string - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - Timeouts
Privatecloudgateway
Ippool Timeouts Args
- gateway String
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- network
Type String - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix Double
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private
Cloud StringGateway Id - The ID of the Private Cloud Gateway.
- ip
End StringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip
Start StringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - name String
- The name of the IP pool.
- nameserver
Addresses List<String> - The list of nameserver IP addresses for the IP pool.
- nameserver
Search List<String>Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - privatecloudgateway
Ippool StringId - The ID of this resource.
- restrict
To BooleanSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet
Cidr String - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts
Privatecloudgateway
Ippool Timeouts
- gateway string
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- network
Type string - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix number
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private
Cloud stringGateway Id - The ID of the Private Cloud Gateway.
- ip
End stringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip
Start stringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - name string
- The name of the IP pool.
- nameserver
Addresses string[] - The list of nameserver IP addresses for the IP pool.
- nameserver
Search string[]Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - privatecloudgateway
Ippool stringId - The ID of this resource.
- restrict
To booleanSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet
Cidr string - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts
Privatecloudgateway
Ippool Timeouts
- gateway str
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- network_
type str - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix float
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private_
cloud_ strgateway_ id - The ID of the Private Cloud Gateway.
- ip_
end_ strrange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip_
start_ strrange - The start IP address of the IP pool. Required if
network_type
isrange
. - name str
- The name of the IP pool.
- nameserver_
addresses Sequence[str] - The list of nameserver IP addresses for the IP pool.
- nameserver_
search_ Sequence[str]suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - privatecloudgateway_
ippool_ strid - The ID of this resource.
- restrict_
to_ boolsingle_ cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet_
cidr str - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts
Privatecloudgateway
Ippool Timeouts Args
- gateway String
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- network
Type String - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix Number
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private
Cloud StringGateway Id - The ID of the Private Cloud Gateway.
- ip
End StringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip
Start StringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - name String
- The name of the IP pool.
- nameserver
Addresses List<String> - The list of nameserver IP addresses for the IP pool.
- nameserver
Search List<String>Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - privatecloudgateway
Ippool StringId - The ID of this resource.
- restrict
To BooleanSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet
Cidr String - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivatecloudgatewayIppool resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing PrivatecloudgatewayIppool Resource
Get an existing PrivatecloudgatewayIppool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PrivatecloudgatewayIppoolState, opts?: CustomResourceOptions): PrivatecloudgatewayIppool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
gateway: Optional[str] = None,
ip_end_range: Optional[str] = None,
ip_start_range: Optional[str] = None,
name: Optional[str] = None,
nameserver_addresses: Optional[Sequence[str]] = None,
nameserver_search_suffixes: Optional[Sequence[str]] = None,
network_type: Optional[str] = None,
prefix: Optional[float] = None,
private_cloud_gateway_id: Optional[str] = None,
privatecloudgateway_ippool_id: Optional[str] = None,
restrict_to_single_cluster: Optional[bool] = None,
subnet_cidr: Optional[str] = None,
timeouts: Optional[PrivatecloudgatewayIppoolTimeoutsArgs] = None) -> PrivatecloudgatewayIppool
func GetPrivatecloudgatewayIppool(ctx *Context, name string, id IDInput, state *PrivatecloudgatewayIppoolState, opts ...ResourceOption) (*PrivatecloudgatewayIppool, error)
public static PrivatecloudgatewayIppool Get(string name, Input<string> id, PrivatecloudgatewayIppoolState? state, CustomResourceOptions? opts = null)
public static PrivatecloudgatewayIppool get(String name, Output<String> id, PrivatecloudgatewayIppoolState state, CustomResourceOptions options)
resources: _: type: spectrocloud:PrivatecloudgatewayIppool get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Gateway string
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- Ip
End stringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - Ip
Start stringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - Name string
- The name of the IP pool.
- Nameserver
Addresses List<string> - The list of nameserver IP addresses for the IP pool.
- Nameserver
Search List<string>Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - Network
Type string - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - Prefix double
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - Private
Cloud stringGateway Id - The ID of the Private Cloud Gateway.
- Privatecloudgateway
Ippool stringId - The ID of this resource.
- Restrict
To boolSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - Subnet
Cidr string - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - Timeouts
Privatecloudgateway
Ippool Timeouts
- Gateway string
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- Ip
End stringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - Ip
Start stringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - Name string
- The name of the IP pool.
- Nameserver
Addresses []string - The list of nameserver IP addresses for the IP pool.
- Nameserver
Search []stringSuffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - Network
Type string - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - Prefix float64
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - Private
Cloud stringGateway Id - The ID of the Private Cloud Gateway.
- Privatecloudgateway
Ippool stringId - The ID of this resource.
- Restrict
To boolSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - Subnet
Cidr string - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - Timeouts
Privatecloudgateway
Ippool Timeouts Args
- gateway String
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- ip
End StringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip
Start StringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - name String
- The name of the IP pool.
- nameserver
Addresses List<String> - The list of nameserver IP addresses for the IP pool.
- nameserver
Search List<String>Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - network
Type String - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix Double
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private
Cloud StringGateway Id - The ID of the Private Cloud Gateway.
- privatecloudgateway
Ippool StringId - The ID of this resource.
- restrict
To BooleanSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet
Cidr String - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts
Privatecloudgateway
Ippool Timeouts
- gateway string
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- ip
End stringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip
Start stringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - name string
- The name of the IP pool.
- nameserver
Addresses string[] - The list of nameserver IP addresses for the IP pool.
- nameserver
Search string[]Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - network
Type string - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix number
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private
Cloud stringGateway Id - The ID of the Private Cloud Gateway.
- privatecloudgateway
Ippool stringId - The ID of this resource.
- restrict
To booleanSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet
Cidr string - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts
Privatecloudgateway
Ippool Timeouts
- gateway str
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- ip_
end_ strrange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip_
start_ strrange - The start IP address of the IP pool. Required if
network_type
isrange
. - name str
- The name of the IP pool.
- nameserver_
addresses Sequence[str] - The list of nameserver IP addresses for the IP pool.
- nameserver_
search_ Sequence[str]suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - network_
type str - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix float
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private_
cloud_ strgateway_ id - The ID of the Private Cloud Gateway.
- privatecloudgateway_
ippool_ strid - The ID of this resource.
- restrict_
to_ boolsingle_ cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet_
cidr str - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts
Privatecloudgateway
Ippool Timeouts Args
- gateway String
- The network gateway IP address for the IP pool. Typically, this is the default network gateway for the subnet.
- ip
End StringRange - The end IP address of the IP pool. Required if
network_type
isrange
. - ip
Start StringRange - The start IP address of the IP pool. Required if
network_type
isrange
. - name String
- The name of the IP pool.
- nameserver
Addresses List<String> - The list of nameserver IP addresses for the IP pool.
- nameserver
Search List<String>Suffixes - The list of nameserver search suffixes for the IP pool. For example,
example.org
. - network
Type String - The type of network for the IP pool. Allowed values are:
range
andsubnet
. - prefix Number
- The prefix of the IP pool provided network range or subnet. For example
24
for a/24
subnet or a range that falls inside a24
subnet. - private
Cloud StringGateway Id - The ID of the Private Cloud Gateway.
- privatecloudgateway
Ippool StringId - The ID of this resource.
- restrict
To BooleanSingle Cluster - Restrict the IP pool to a single cluster. If set to
true
, the IP pool is restricted to a single cluster. We recommend setting this totrue
for production environments and creating separate IP pools for each cluster. - subnet
Cidr String - The subnet CIDR of the IP pool. Required if
network_type
issubnet
. - timeouts Property Map
Supporting Types
PrivatecloudgatewayIppoolTimeouts, PrivatecloudgatewayIppoolTimeoutsArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.