ns1.Subnet
Explore with Pulumi AI
Create Subnet Resource
new Subnet(name: string, args?: SubnetArgs, opts?: CustomResourceOptions);
@overload
def Subnet(resource_name: str,
opts: Optional[ResourceOptions] = None,
children: Optional[int] = None,
desc: Optional[str] = None,
dhcp_scoped: Optional[bool] = None,
free_addresses: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[int] = None,
parent_id: Optional[int] = None,
prefix: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
total_addresses: Optional[str] = None,
used_addresses: Optional[str] = None)
@overload
def Subnet(resource_name: str,
args: Optional[SubnetArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewSubnet(ctx *Context, name string, args *SubnetArgs, opts ...ResourceOption) (*Subnet, error)
public Subnet(string name, SubnetArgs? args = null, CustomResourceOptions? opts = null)
public Subnet(String name, SubnetArgs args)
public Subnet(String name, SubnetArgs args, CustomResourceOptions options)
type: ns1:Subnet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubnetArgs
- 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 SubnetArgs
- 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 SubnetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Subnet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Subnet resource accepts the following input properties:
- Children int
- Desc string
- Dhcp
Scoped bool - Free
Addresses string - Name string
- Network
Id int - Parent
Id int - Prefix string
- Status string
- Dictionary<string, object>
- Total
Addresses string - Used
Addresses string
- Children int
- Desc string
- Dhcp
Scoped bool - Free
Addresses string - Name string
- Network
Id int - Parent
Id int - Prefix string
- Status string
- map[string]interface{}
- Total
Addresses string - Used
Addresses string
- children Integer
- desc String
- dhcp
Scoped Boolean - free
Addresses String - name String
- network
Id Integer - parent
Id Integer - prefix String
- status String
- Map<String,Object>
- total
Addresses String - used
Addresses String
- children number
- desc string
- dhcp
Scoped boolean - free
Addresses string - name string
- network
Id number - parent
Id number - prefix string
- status string
- {[key: string]: any}
- total
Addresses string - used
Addresses string
- children int
- desc str
- dhcp_
scoped bool - free_
addresses str - name str
- network_
id int - parent_
id int - prefix str
- status str
- Mapping[str, Any]
- total_
addresses str - used_
addresses str
- children Number
- desc String
- dhcp
Scoped Boolean - free
Addresses String - name String
- network
Id Number - parent
Id Number - prefix String
- status String
- Map<Any>
- total
Addresses String - used
Addresses String
Outputs
All input properties are implicitly available as output properties. Additionally, the Subnet 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 Subnet Resource
Get an existing Subnet 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?: SubnetState, opts?: CustomResourceOptions): Subnet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
children: Optional[int] = None,
desc: Optional[str] = None,
dhcp_scoped: Optional[bool] = None,
free_addresses: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[int] = None,
parent_id: Optional[int] = None,
prefix: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
total_addresses: Optional[str] = None,
used_addresses: Optional[str] = None) -> Subnet
func GetSubnet(ctx *Context, name string, id IDInput, state *SubnetState, opts ...ResourceOption) (*Subnet, error)
public static Subnet Get(string name, Input<string> id, SubnetState? state, CustomResourceOptions? opts = null)
public static Subnet get(String name, Output<String> id, SubnetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Children int
- Desc string
- Dhcp
Scoped bool - Free
Addresses string - Name string
- Network
Id int - Parent
Id int - Prefix string
- Status string
- Dictionary<string, object>
- Total
Addresses string - Used
Addresses string
- Children int
- Desc string
- Dhcp
Scoped bool - Free
Addresses string - Name string
- Network
Id int - Parent
Id int - Prefix string
- Status string
- map[string]interface{}
- Total
Addresses string - Used
Addresses string
- children Integer
- desc String
- dhcp
Scoped Boolean - free
Addresses String - name String
- network
Id Integer - parent
Id Integer - prefix String
- status String
- Map<String,Object>
- total
Addresses String - used
Addresses String
- children number
- desc string
- dhcp
Scoped boolean - free
Addresses string - name string
- network
Id number - parent
Id number - prefix string
- status string
- {[key: string]: any}
- total
Addresses string - used
Addresses string
- children int
- desc str
- dhcp_
scoped bool - free_
addresses str - name str
- network_
id int - parent_
id int - prefix str
- status str
- Mapping[str, Any]
- total_
addresses str - used_
addresses str
- children Number
- desc String
- dhcp
Scoped Boolean - free
Addresses String - name String
- network
Id Number - parent
Id Number - prefix String
- status String
- Map<Any>
- total
Addresses String - used
Addresses String
Package Details
- Repository
- NS1 pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
ns1
Terraform Provider.