github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/azurerm/d/public_ip.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azurerm_public_ip"
     4  sidebar_current: "docs-azurerm-datasource-public-ip"
     5  description: |-
     6    Get information about the specified public IP address.
     7  ---
     8  
     9  # azurerm\_public\_ip
    10  
    11  Use this data source to access the properties of an existing Azure Public IP Address.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "azurerm_public_ip" "datasourceip" {
    17      name = "testPublicIp"
    18      resource_group_name = "acctestRG"
    19  }
    20  
    21  resource "azurerm_virtual_network" "helloterraformnetwork" {
    22      name = "acctvn"
    23      address_space = ["10.0.0.0/16"]
    24      location = "West US 2"
    25      resource_group_name = "acctestRG"
    26  }
    27  
    28  resource "azurerm_subnet" "helloterraformsubnet" {
    29      name = "acctsub"
    30      resource_group_name = "acctestRG"
    31      virtual_network_name = "${azurerm_virtual_network.helloterraformnetwork.name}"
    32      address_prefix = "10.0.2.0/24"
    33  }
    34  
    35  resource "azurerm_network_interface" "helloterraformnic" {
    36      name = "tfni"
    37      location = "West US 2"
    38      resource_group_name = "acctestRG"
    39  
    40      ip_configuration {
    41          name = "testconfiguration1"
    42          subnet_id = "${azurerm_subnet.helloterraformsubnet.id}"
    43          private_ip_address_allocation = "static"
    44          private_ip_address = "10.0.2.5"
    45          public_ip_address_id = "${data.azurerm_public_ip.datasourceip.id}"
    46      }
    47  }
    48  ```
    49  
    50  ## Argument Reference
    51  
    52  * `name` - (Required) Specifies the name of the public IP address.
    53  * `resource_group_name` - (Required) Specifies the name of the resource group.
    54  
    55  
    56  ## Attributes Reference
    57  
    58  * `domain_name_label` - The label for the Domain Name.
    59  * `idle_timeout_in_minutes` - Specifies the timeout for the TCP idle connection.
    60  * `fqdn` - Fully qualified domain name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone.
    61  * `ip_address` - The IP address value that was allocated.
    62  * `tags` - A mapping of tags to assigned to the resource.