Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getVpcAddress
Explore with Pulumi AI
Get information about a Yandex VPC address. For more information, see Yandex.Cloud VPC.
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const addr = pulumi.output(yandex.getVpcAddress({
    addressId: "my-address-id",
}));
import pulumi
import pulumi_yandex as yandex
addr = yandex.get_vpc_address(address_id="my-address-id")
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
    public MyStack()
    {
        var addr = Output.Create(Yandex.GetVpcAddress.InvokeAsync(new Yandex.GetVpcAddressArgs
        {
            AddressId = "my-address-id",
        }));
    }
}
package main
import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "my-address-id"
		_, err := yandex.LookupVpcAddress(ctx, &GetVpcAddressArgs{
			AddressId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
This data source is used to define [VPC Address] that can be used by other resources.
Using getVpcAddress
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 getVpcAddress(args: GetVpcAddressArgs, opts?: InvokeOptions): Promise<GetVpcAddressResult>
function getVpcAddressOutput(args: GetVpcAddressOutputArgs, opts?: InvokeOptions): Output<GetVpcAddressResult>def get_vpc_address(address_id: Optional[str] = None,
                    folder_id: Optional[str] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVpcAddressResult
def get_vpc_address_output(address_id: Optional[pulumi.Input[str]] = None,
                    folder_id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVpcAddressResult]func LookupVpcAddress(ctx *Context, args *LookupVpcAddressArgs, opts ...InvokeOption) (*LookupVpcAddressResult, error)
func LookupVpcAddressOutput(ctx *Context, args *LookupVpcAddressOutputArgs, opts ...InvokeOption) LookupVpcAddressResultOutput> Note: This function is named LookupVpcAddress in the Go SDK.
public static class GetVpcAddress 
{
    public static Task<GetVpcAddressResult> InvokeAsync(GetVpcAddressArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcAddressResult> Invoke(GetVpcAddressInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcAddressResult> getVpcAddress(GetVpcAddressArgs args, InvokeOptions options)
public static Output<GetVpcAddressResult> getVpcAddress(GetVpcAddressArgs args, InvokeOptions options)
fn::invoke:
  function: yandex:index/getVpcAddress:getVpcAddress
  arguments:
    # arguments dictionaryThe following arguments are supported:
- address_id str
- ID of the address.
- folder_id str
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name str
- Name of the address.
getVpcAddress Result
The following output properties are available:
- AddressId string
- CreatedAt string
- Creation timestamp of this address.
- Description string
- Description of the address.
- ExternalIpv4Addresses List<GetVpc Address External Ipv4Address> 
- spec of IP v4 address.
- FolderId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- Labels assigned to this address.
- Name string
- Reserved bool
- falsemeans that address is ephemeral.
- Used bool
- trueif address is used.
- AddressId string
- CreatedAt string
- Creation timestamp of this address.
- Description string
- Description of the address.
- ExternalIpv4Addresses []GetVpc Address External Ipv4Address 
- spec of IP v4 address.
- FolderId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- Labels assigned to this address.
- Name string
- Reserved bool
- falsemeans that address is ephemeral.
- Used bool
- trueif address is used.
- addressId String
- createdAt String
- Creation timestamp of this address.
- description String
- Description of the address.
- externalIpv4Addresses List<GetVpc Address External Ipv4Address> 
- spec of IP v4 address.
- folderId String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- Labels assigned to this address.
- name String
- reserved Boolean
- falsemeans that address is ephemeral.
- used Boolean
- trueif address is used.
- addressId string
- createdAt string
- Creation timestamp of this address.
- description string
- Description of the address.
- externalIpv4Addresses GetVpc Address External Ipv4Address[] 
- spec of IP v4 address.
- folderId string
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- Labels assigned to this address.
- name string
- reserved boolean
- falsemeans that address is ephemeral.
- used boolean
- trueif address is used.
- address_id str
- created_at str
- Creation timestamp of this address.
- description str
- Description of the address.
- external_ipv4_ Sequence[Getaddresses Vpc Address External Ipv4Address] 
- spec of IP v4 address.
- folder_id str
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- Labels assigned to this address.
- name str
- reserved bool
- falsemeans that address is ephemeral.
- used bool
- trueif address is used.
- addressId String
- createdAt String
- Creation timestamp of this address.
- description String
- Description of the address.
- externalIpv4Addresses List<Property Map>
- spec of IP v4 address.
- folderId String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- Labels assigned to this address.
- name String
- reserved Boolean
- falsemeans that address is ephemeral.
- used Boolean
- trueif address is used.
Supporting Types
GetVpcAddressExternalIpv4Address    
- Address string
- IP address.
- DdosProtection stringProvider 
- DDOS protection provider.
- OutgoingSmtp stringCapability 
- Outgoing smtp capability.
- ZoneId string
- Zone for allocating address.
- Address string
- IP address.
- DdosProtection stringProvider 
- DDOS protection provider.
- OutgoingSmtp stringCapability 
- Outgoing smtp capability.
- ZoneId string
- Zone for allocating address.
- address String
- IP address.
- ddosProtection StringProvider 
- DDOS protection provider.
- outgoingSmtp StringCapability 
- Outgoing smtp capability.
- zoneId String
- Zone for allocating address.
- address string
- IP address.
- ddosProtection stringProvider 
- DDOS protection provider.
- outgoingSmtp stringCapability 
- Outgoing smtp capability.
- zoneId string
- Zone for allocating address.
- address str
- IP address.
- ddos_protection_ strprovider 
- DDOS protection provider.
- outgoing_smtp_ strcapability 
- Outgoing smtp capability.
- zone_id str
- Zone for allocating address.
- address String
- IP address.
- ddosProtection StringProvider 
- DDOS protection provider.
- outgoingSmtp StringCapability 
- Outgoing smtp capability.
- zoneId String
- Zone for allocating address.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.