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

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

Google Cloud Native v0.31.1 published on Thursday, Jul 20, 2023 by Pulumi

google-native.compute/v1.getNetworkAttachment

Explore with Pulumi AI

google-native logo

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

Google Cloud Native v0.31.1 published on Thursday, Jul 20, 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/v1:getNetworkAttachment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkAttachment string
    Region string
    Project string
    NetworkAttachment string
    Region string
    Project string
    networkAttachment String
    region String
    project String
    networkAttachment string
    region string
    project string
    networkAttachment String
    region String
    project String

    getNetworkAttachment Result

    The following output properties are available:

    ConnectionEndpoints List<Pulumi.GoogleNative.Compute.V1.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 string

    The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless.

    ProjectIdOrNum string

    The project id or number of the interface to which the IP was assigned.

    SecondaryIpCidrRanges List<string>

    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.

    IpAddress string

    The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless.

    ProjectIdOrNum string

    The project id or number of the interface to which the IP was assigned.

    SecondaryIpCidrRanges []string

    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.

    ipAddress String

    The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless.

    projectIdOrNum String

    The project id or number of the interface to which the IP was assigned.

    secondaryIpCidrRanges List<String>

    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.

    ipAddress string

    The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless.

    projectIdOrNum string

    The project id or number of the interface to which the IP was assigned.

    secondaryIpCidrRanges string[]

    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.

    ip_address str

    The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless.

    project_id_or_num str

    The project id or number of the interface to which the IP was assigned.

    secondary_ip_cidr_ranges Sequence[str]

    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.

    ipAddress String

    The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless.

    projectIdOrNum String

    The project id or number of the interface to which the IP was assigned.

    secondaryIpCidrRanges List<String>

    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.

    Package Details

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

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

    Google Cloud Native v0.31.1 published on Thursday, Jul 20, 2023 by Pulumi