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>
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]
func LookupNetworkAttachment(ctx *Context, args *LookupNetworkAttachmentArgs, opts ...InvokeOption) (*LookupNetworkAttachmentResult, error)
func LookupNetworkAttachmentOutput(ctx *Context, args *LookupNetworkAttachmentOutputArgs, opts ...InvokeOption) LookupNetworkAttachmentResultOutput
> 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)
}
public static CompletableFuture<GetNetworkAttachmentResult> getNetworkAttachment(GetNetworkAttachmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:compute/alpha:getNetworkAttachment
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Attachment string - Region string
- Project string
- Network
Attachment string - Region string
- Project string
- network
Attachment String - region String
- project String
- network
Attachment string - region string
- project string
- network_
attachment str - region str
- project str
- network
Attachment String - region String
- project String
getNetworkAttachment Result
The following output properties are available:
- Connection
Endpoints List<Pulumi.Google Native. Compute. Alpha. Outputs. Network Attachment Connected Endpoint Response> - An array of connections for all the producers connected to this network attachment.
- Connection
Preference string - Creation
Timestamp 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.
- Producer
Accept List<string>Lists - Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
- Producer
Reject List<string>Lists - 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.
- Self
Link string - Server-defined URL for the resource.
- Self
Link stringWith Id - 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.
- Connection
Endpoints []NetworkAttachment Connected Endpoint Response - An array of connections for all the producers connected to this network attachment.
- Connection
Preference string - Creation
Timestamp 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.
- Producer
Accept []stringLists - Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
- Producer
Reject []stringLists - 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.
- Self
Link string - Server-defined URL for the resource.
- Self
Link stringWith Id - 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 List<NetworkAttachment Connected Endpoint Response> - An array of connections for all the producers connected to this network attachment.
- connection
Preference String - creation
Timestamp 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.
- producer
Accept List<String>Lists - Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
- producer
Reject List<String>Lists - 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.
- self
Link String - Server-defined URL for the resource.
- self
Link StringWith Id - 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.
- connection
Endpoints NetworkAttachment Connected Endpoint Response[] - An array of connections for all the producers connected to this network attachment.
- connection
Preference string - creation
Timestamp 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.
- producer
Accept string[]Lists - Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
- producer
Reject string[]Lists - 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.
- self
Link string - Server-defined URL for the resource.
- self
Link stringWith Id - 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[NetworkAttachment Connected Endpoint Response] - 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_ Sequence[str]lists - Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
- producer_
reject_ Sequence[str]lists - 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_ strwith_ id - 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.
- connection
Endpoints List<Property Map> - An array of connections for all the producers connected to this network attachment.
- connection
Preference String - creation
Timestamp 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.
- producer
Accept List<String>Lists - Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
- producer
Reject List<String>Lists - 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.
- self
Link String - Server-defined URL for the resource.
- self
Link StringWith Id - 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
- Ip
Address string - The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
- Ipv6Address 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.
- Project
Id stringOr Num - The project id or number of the interface to which the IP was assigned.
- Secondary
Ip List<string>Cidr Ranges - Alias IP ranges from the same subnetwork.
- Status string
- The status of a connected endpoint to this network attachment.
- Subnetwork string
- The subnetwork used to assign the IP to the producer instance network interface.
- Subnetwork
Cidr stringRange - The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
- Ip
Address string - The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
- Ipv6Address 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.
- Project
Id stringOr Num - The project id or number of the interface to which the IP was assigned.
- Secondary
Ip []stringCidr Ranges - Alias IP ranges from the same subnetwork.
- Status string
- The status of a connected endpoint to this network attachment.
- Subnetwork string
- The subnetwork used to assign the IP to the producer instance network interface.
- Subnetwork
Cidr stringRange - The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
- ip
Address String - The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
- ipv6Address 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.
- project
Id StringOr Num - The project id or number of the interface to which the IP was assigned.
- secondary
Ip List<String>Cidr Ranges - Alias IP ranges from the same subnetwork.
- status String
- The status of a connected endpoint to this network attachment.
- subnetwork String
- The subnetwork used to assign the IP to the producer instance network interface.
- subnetwork
Cidr StringRange - The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
- ip
Address string - The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
- ipv6Address 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.
- project
Id stringOr Num - The project id or number of the interface to which the IP was assigned.
- secondary
Ip string[]Cidr Ranges - Alias IP ranges from the same subnetwork.
- status string
- The status of a connected endpoint to this network attachment.
- subnetwork string
- The subnetwork used to assign the IP to the producer instance network interface.
- subnetwork
Cidr stringRange - The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
- ip_
address str - The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
- ipv6_
address 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_ stror_ num - The project id or number of the interface to which the IP was assigned.
- secondary_
ip_ Sequence[str]cidr_ ranges - Alias IP ranges from the same subnetwork.
- status str
- The status of a connected endpoint to this network attachment.
- subnetwork str
- The subnetwork used to assign the IP to the producer instance network interface.
- subnetwork_
cidr_ strrange - The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
- ip
Address String - The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
- ipv6Address 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.
- project
Id StringOr Num - The project id or number of the interface to which the IP was assigned.
- secondary
Ip List<String>Cidr Ranges - Alias IP ranges from the same subnetwork.
- status String
- The status of a connected endpoint to this network attachment.
- subnetwork String
- The subnetwork used to assign the IP to the producer instance network interface.
- subnetwork
Cidr StringRange - 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