Class PublicIp
Manages a Public IP Address.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AllocationMethod = "Static",
Tags =
{
{ "environment", "Production" },
},
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public class PublicIp : CustomResource
Constructors
View SourcePublicIp(String, PublicIpArgs, CustomResourceOptions)
Create a PublicIp resource with the given unique name, arguments, and options.
Declaration
public PublicIp(string name, PublicIpArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PublicIpArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllocationMethod
Defines the allocation method for this IP address. Possible values are Static or Dynamic.
Declaration
public Output<string> AllocationMethod { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DomainNameLabel
Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
Declaration
public Output<string> DomainNameLabel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Fqdn
Fully qualified domain name of the A DNS record associated with the public IP. domain_name_label must be specified to get the fqdn. This is the concatenation of the domain_name_label and the regionalized DNS zone
Declaration
public Output<string> Fqdn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IdleTimeoutInMinutes
Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
Declaration
public Output<int?> IdleTimeoutInMinutes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
IpAddress
The IP address value that was allocated.
Declaration
public Output<string> IpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpVersion
The IP Version to use, IPv6 or IPv4.
Declaration
public Output<string> IpVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Location
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the Public IP resource . Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicIpPrefixId
If specified then public IP address allocated will be provided from the public IP prefix resource.
Declaration
public Output<string> PublicIpPrefixId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the public ip.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReverseFqdn
A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
Declaration
public Output<string> ReverseFqdn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Sku
The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic.
Declaration
public Output<string> Sku { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Zones
A collection containing the availability zone to allocate the Public IP in.
Declaration
public Output<string> Zones { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, PublicIpState, CustomResourceOptions)
Get an existing PublicIp resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static PublicIp Get(string name, Input<string> id, PublicIpState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| PublicIpState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| PublicIp |