1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/alpha
  6. getNetworkAttachment

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/alpha.getNetworkAttachment

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Returns the specified NetworkAttachment resource in the given scope.

Using getNetworkAttachment

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 getNetworkAttachment(args: GetNetworkAttachmentArgs, opts?: InvokeOptions): Promise<GetNetworkAttachmentResult>
function getNetworkAttachmentOutput(args: GetNetworkAttachmentOutputArgs, opts?: InvokeOptions): Output<GetNetworkAttachmentResult>
Copy
def get_network_attachment(network_attachment: Optional[str] = None,
                           project: Optional[str] = None,
                           region: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetNetworkAttachmentResult
def get_network_attachment_output(network_attachment: Optional[pulumi.Input[str]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetNetworkAttachmentResult]
Copy
func LookupNetworkAttachment(ctx *Context, args *LookupNetworkAttachmentArgs, opts ...InvokeOption) (*LookupNetworkAttachmentResult, error)
func LookupNetworkAttachmentOutput(ctx *Context, args *LookupNetworkAttachmentOutputArgs, opts ...InvokeOption) LookupNetworkAttachmentResultOutput
Copy

> Note: This function is named LookupNetworkAttachment in the Go SDK.

public static class GetNetworkAttachment 
{
    public static Task<GetNetworkAttachmentResult> InvokeAsync(GetNetworkAttachmentArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkAttachmentResult> Invoke(GetNetworkAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkAttachmentResult> getNetworkAttachment(GetNetworkAttachmentArgs args, InvokeOptions options)
public static Output<GetNetworkAttachmentResult> getNetworkAttachment(GetNetworkAttachmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:compute/alpha:getNetworkAttachment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NetworkAttachment This property is required. string
Region This property is required. string
Project string
NetworkAttachment This property is required. string
Region This property is required. string
Project string
networkAttachment This property is required. String
region This property is required. String
project String
networkAttachment This property is required. string
region This property is required. string
project string
network_attachment This property is required. str
region This property is required. str
project str
networkAttachment This property is required. String
region This property is required. String
project String

getNetworkAttachment Result

The following output properties are available:

ConnectionEndpoints List<Pulumi.GoogleNative.Compute.Alpha.Outputs.NetworkAttachmentConnectedEndpointResponse>
An array of connections for all the producers connected to this network attachment.
ConnectionPreference string
CreationTimestamp string
Creation timestamp in RFC3339 text format.
Description string
An optional description of this resource. Provide this property when you create the resource.
Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
Kind string
Type of the resource.
Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Network string
The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
ProducerAcceptLists List<string>
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
ProducerRejectLists List<string>
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
Region string
URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
SelfLink string
Server-defined URL for the resource.
SelfLinkWithId string
Server-defined URL for this resource's resource id.
Subnetworks List<string>
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
ConnectionEndpoints []NetworkAttachmentConnectedEndpointResponse
An array of connections for all the producers connected to this network attachment.
ConnectionPreference string
CreationTimestamp string
Creation timestamp in RFC3339 text format.
Description string
An optional description of this resource. Provide this property when you create the resource.
Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
Kind string
Type of the resource.
Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Network string
The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
ProducerAcceptLists []string
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
ProducerRejectLists []string
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
Region string
URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
SelfLink string
Server-defined URL for the resource.
SelfLinkWithId string
Server-defined URL for this resource's resource id.
Subnetworks []string
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
connectionEndpoints List<NetworkAttachmentConnectedEndpointResponse>
An array of connections for all the producers connected to this network attachment.
connectionPreference String
creationTimestamp String
Creation timestamp in RFC3339 text format.
description String
An optional description of this resource. Provide this property when you create the resource.
fingerprint String
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
kind String
Type of the resource.
name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network String
The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
producerAcceptLists List<String>
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
producerRejectLists List<String>
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
region String
URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
selfLink String
Server-defined URL for the resource.
selfLinkWithId String
Server-defined URL for this resource's resource id.
subnetworks List<String>
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
connectionEndpoints NetworkAttachmentConnectedEndpointResponse[]
An array of connections for all the producers connected to this network attachment.
connectionPreference string
creationTimestamp string
Creation timestamp in RFC3339 text format.
description string
An optional description of this resource. Provide this property when you create the resource.
fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
kind string
Type of the resource.
name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network string
The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
producerAcceptLists string[]
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
producerRejectLists string[]
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
region string
URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
selfLink string
Server-defined URL for the resource.
selfLinkWithId string
Server-defined URL for this resource's resource id.
subnetworks string[]
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
connection_endpoints Sequence[NetworkAttachmentConnectedEndpointResponse]
An array of connections for all the producers connected to this network attachment.
connection_preference str
creation_timestamp str
Creation timestamp in RFC3339 text format.
description str
An optional description of this resource. Provide this property when you create the resource.
fingerprint str
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
kind str
Type of the resource.
name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network str
The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
producer_accept_lists Sequence[str]
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
producer_reject_lists Sequence[str]
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
region str
URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
self_link str
Server-defined URL for the resource.
self_link_with_id str
Server-defined URL for this resource's resource id.
subnetworks Sequence[str]
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
connectionEndpoints List<Property Map>
An array of connections for all the producers connected to this network attachment.
connectionPreference String
creationTimestamp String
Creation timestamp in RFC3339 text format.
description String
An optional description of this resource. Provide this property when you create the resource.
fingerprint String
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
kind String
Type of the resource.
name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network String
The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
producerAcceptLists List<String>
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
producerRejectLists List<String>
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
region String
URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
selfLink String
Server-defined URL for the resource.
selfLinkWithId String
Server-defined URL for this resource's resource id.
subnetworks List<String>
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

Supporting Types

NetworkAttachmentConnectedEndpointResponse

IpAddress This property is required. string
The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
Ipv6Address This property is required. string
The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
ProjectIdOrNum This property is required. string
The project id or number of the interface to which the IP was assigned.
SecondaryIpCidrRanges This property is required. List<string>
Alias IP ranges from the same subnetwork.
Status This property is required. string
The status of a connected endpoint to this network attachment.
Subnetwork This property is required. string
The subnetwork used to assign the IP to the producer instance network interface.
SubnetworkCidrRange This property is required. string
The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
IpAddress This property is required. string
The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
Ipv6Address This property is required. string
The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
ProjectIdOrNum This property is required. string
The project id or number of the interface to which the IP was assigned.
SecondaryIpCidrRanges This property is required. []string
Alias IP ranges from the same subnetwork.
Status This property is required. string
The status of a connected endpoint to this network attachment.
Subnetwork This property is required. string
The subnetwork used to assign the IP to the producer instance network interface.
SubnetworkCidrRange This property is required. string
The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
ipAddress This property is required. String
The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
ipv6Address This property is required. String
The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
projectIdOrNum This property is required. String
The project id or number of the interface to which the IP was assigned.
secondaryIpCidrRanges This property is required. List<String>
Alias IP ranges from the same subnetwork.
status This property is required. String
The status of a connected endpoint to this network attachment.
subnetwork This property is required. String
The subnetwork used to assign the IP to the producer instance network interface.
subnetworkCidrRange This property is required. String
The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
ipAddress This property is required. string
The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
ipv6Address This property is required. string
The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
projectIdOrNum This property is required. string
The project id or number of the interface to which the IP was assigned.
secondaryIpCidrRanges This property is required. string[]
Alias IP ranges from the same subnetwork.
status This property is required. string
The status of a connected endpoint to this network attachment.
subnetwork This property is required. string
The subnetwork used to assign the IP to the producer instance network interface.
subnetworkCidrRange This property is required. string
The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
ip_address This property is required. str
The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
ipv6_address This property is required. str
The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
project_id_or_num This property is required. str
The project id or number of the interface to which the IP was assigned.
secondary_ip_cidr_ranges This property is required. Sequence[str]
Alias IP ranges from the same subnetwork.
status This property is required. str
The status of a connected endpoint to this network attachment.
subnetwork This property is required. str
The subnetwork used to assign the IP to the producer instance network interface.
subnetwork_cidr_range This property is required. str
The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
ipAddress This property is required. String
The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
ipv6Address This property is required. String
The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
projectIdOrNum This property is required. String
The project id or number of the interface to which the IP was assigned.
secondaryIpCidrRanges This property is required. List<String>
Alias IP ranges from the same subnetwork.
status This property is required. String
The status of a connected endpoint to this network attachment.
subnetwork This property is required. String
The subnetwork used to assign the IP to the producer instance network interface.
subnetworkCidrRange This property is required. String
The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi