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

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/v1.getServiceAttachment

Explore with Pulumi AI

google-native logo

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 ServiceAttachment resource in the given scope.

    Using getServiceAttachment

    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 getServiceAttachment(args: GetServiceAttachmentArgs, opts?: InvokeOptions): Promise<GetServiceAttachmentResult>
    function getServiceAttachmentOutput(args: GetServiceAttachmentOutputArgs, opts?: InvokeOptions): Output<GetServiceAttachmentResult>
    def get_service_attachment(project: Optional[str] = None,
                               region: Optional[str] = None,
                               service_attachment: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetServiceAttachmentResult
    def get_service_attachment_output(project: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               service_attachment: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetServiceAttachmentResult]
    func LookupServiceAttachment(ctx *Context, args *LookupServiceAttachmentArgs, opts ...InvokeOption) (*LookupServiceAttachmentResult, error)
    func LookupServiceAttachmentOutput(ctx *Context, args *LookupServiceAttachmentOutputArgs, opts ...InvokeOption) LookupServiceAttachmentResultOutput

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

    public static class GetServiceAttachment 
    {
        public static Task<GetServiceAttachmentResult> InvokeAsync(GetServiceAttachmentArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceAttachmentResult> Invoke(GetServiceAttachmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceAttachmentResult> getServiceAttachment(GetServiceAttachmentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:compute/v1:getServiceAttachment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    ServiceAttachment string
    Project string
    Region string
    ServiceAttachment string
    Project string
    region String
    serviceAttachment String
    project String
    region string
    serviceAttachment string
    project string
    region String
    serviceAttachment String
    project String

    getServiceAttachment Result

    The following output properties are available:

    ConnectedEndpoints List<Pulumi.GoogleNative.Compute.V1.Outputs.ServiceAttachmentConnectedEndpointResponse>
    An array of connections for all the consumers connected to this service attachment.
    ConnectionPreference string
    The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
    ConsumerAcceptLists List<Pulumi.GoogleNative.Compute.V1.Outputs.ServiceAttachmentConsumerProjectLimitResponse>
    Projects that are allowed to connect to this service attachment.
    ConsumerRejectLists List<string>
    Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    DomainNames List<string>
    If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
    EnableProxyProtocol bool
    If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
    Fingerprint string
    Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
    Kind string
    Type of the resource. Always compute#serviceAttachment for service attachments.
    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.
    NatSubnets List<string>
    An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
    ProducerForwardingRule string
    The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
    PscServiceAttachmentId Pulumi.GoogleNative.Compute.V1.Outputs.Uint128Response
    An 128-bit global unique ID of the PSC service attachment.
    ReconcileConnections bool
    This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
    Region string
    URL of the region where the service 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.
    TargetService string
    The URL of a service serving the endpoint identified by this service attachment.
    ConnectedEndpoints []ServiceAttachmentConnectedEndpointResponse
    An array of connections for all the consumers connected to this service attachment.
    ConnectionPreference string
    The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
    ConsumerAcceptLists []ServiceAttachmentConsumerProjectLimitResponse
    Projects that are allowed to connect to this service attachment.
    ConsumerRejectLists []string
    Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    DomainNames []string
    If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
    EnableProxyProtocol bool
    If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
    Fingerprint string
    Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
    Kind string
    Type of the resource. Always compute#serviceAttachment for service attachments.
    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.
    NatSubnets []string
    An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
    ProducerForwardingRule string
    The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
    PscServiceAttachmentId Uint128Response
    An 128-bit global unique ID of the PSC service attachment.
    ReconcileConnections bool
    This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
    Region string
    URL of the region where the service 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.
    TargetService string
    The URL of a service serving the endpoint identified by this service attachment.
    connectedEndpoints List<ServiceAttachmentConnectedEndpointResponse>
    An array of connections for all the consumers connected to this service attachment.
    connectionPreference String
    The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
    consumerAcceptLists List<ServiceAttachmentConsumerProjectLimitResponse>
    Projects that are allowed to connect to this service attachment.
    consumerRejectLists List<String>
    Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    domainNames List<String>
    If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
    enableProxyProtocol Boolean
    If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
    fingerprint String
    Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
    kind String
    Type of the resource. Always compute#serviceAttachment for service attachments.
    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.
    natSubnets List<String>
    An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
    producerForwardingRule String
    The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
    pscServiceAttachmentId Uint128Response
    An 128-bit global unique ID of the PSC service attachment.
    reconcileConnections Boolean
    This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
    region String
    URL of the region where the service 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.
    targetService String
    The URL of a service serving the endpoint identified by this service attachment.
    connectedEndpoints ServiceAttachmentConnectedEndpointResponse[]
    An array of connections for all the consumers connected to this service attachment.
    connectionPreference string
    The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
    consumerAcceptLists ServiceAttachmentConsumerProjectLimitResponse[]
    Projects that are allowed to connect to this service attachment.
    consumerRejectLists string[]
    Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    description string
    An optional description of this resource. Provide this property when you create the resource.
    domainNames string[]
    If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
    enableProxyProtocol boolean
    If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
    fingerprint string
    Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
    kind string
    Type of the resource. Always compute#serviceAttachment for service attachments.
    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.
    natSubnets string[]
    An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
    producerForwardingRule string
    The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
    pscServiceAttachmentId Uint128Response
    An 128-bit global unique ID of the PSC service attachment.
    reconcileConnections boolean
    This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
    region string
    URL of the region where the service 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.
    targetService string
    The URL of a service serving the endpoint identified by this service attachment.
    connected_endpoints Sequence[ServiceAttachmentConnectedEndpointResponse]
    An array of connections for all the consumers connected to this service attachment.
    connection_preference str
    The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
    consumer_accept_lists Sequence[ServiceAttachmentConsumerProjectLimitResponse]
    Projects that are allowed to connect to this service attachment.
    consumer_reject_lists Sequence[str]
    Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
    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.
    domain_names Sequence[str]
    If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
    enable_proxy_protocol bool
    If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
    fingerprint str
    Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
    kind str
    Type of the resource. Always compute#serviceAttachment for service attachments.
    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.
    nat_subnets Sequence[str]
    An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
    producer_forwarding_rule str
    The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
    psc_service_attachment_id Uint128Response
    An 128-bit global unique ID of the PSC service attachment.
    reconcile_connections bool
    This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
    region str
    URL of the region where the service 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.
    target_service str
    The URL of a service serving the endpoint identified by this service attachment.
    connectedEndpoints List<Property Map>
    An array of connections for all the consumers connected to this service attachment.
    connectionPreference String
    The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.
    consumerAcceptLists List<Property Map>
    Projects that are allowed to connect to this service attachment.
    consumerRejectLists List<String>
    Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    description String
    An optional description of this resource. Provide this property when you create the resource.
    domainNames List<String>
    If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
    enableProxyProtocol Boolean
    If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
    fingerprint String
    Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
    kind String
    Type of the resource. Always compute#serviceAttachment for service attachments.
    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.
    natSubnets List<String>
    An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
    producerForwardingRule String
    The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
    pscServiceAttachmentId Property Map
    An 128-bit global unique ID of the PSC service attachment.
    reconcileConnections Boolean
    This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
    region String
    URL of the region where the service 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.
    targetService String
    The URL of a service serving the endpoint identified by this service attachment.

    Supporting Types

    ServiceAttachmentConnectedEndpointResponse

    ConsumerNetwork string
    The url of the consumer network.
    Endpoint string
    The url of a connected endpoint.
    PscConnectionId string
    The PSC connection id of the connected endpoint.
    Status string
    The status of a connected endpoint to this service attachment.
    ConsumerNetwork string
    The url of the consumer network.
    Endpoint string
    The url of a connected endpoint.
    PscConnectionId string
    The PSC connection id of the connected endpoint.
    Status string
    The status of a connected endpoint to this service attachment.
    consumerNetwork String
    The url of the consumer network.
    endpoint String
    The url of a connected endpoint.
    pscConnectionId String
    The PSC connection id of the connected endpoint.
    status String
    The status of a connected endpoint to this service attachment.
    consumerNetwork string
    The url of the consumer network.
    endpoint string
    The url of a connected endpoint.
    pscConnectionId string
    The PSC connection id of the connected endpoint.
    status string
    The status of a connected endpoint to this service attachment.
    consumer_network str
    The url of the consumer network.
    endpoint str
    The url of a connected endpoint.
    psc_connection_id str
    The PSC connection id of the connected endpoint.
    status str
    The status of a connected endpoint to this service attachment.
    consumerNetwork String
    The url of the consumer network.
    endpoint String
    The url of a connected endpoint.
    pscConnectionId String
    The PSC connection id of the connected endpoint.
    status String
    The status of a connected endpoint to this service attachment.

    ServiceAttachmentConsumerProjectLimitResponse

    ConnectionLimit int
    The value of the limit to set.
    NetworkUrl string
    The network URL for the network to set the limit for.
    ProjectIdOrNum string
    The project id or number for the project to set the limit for.
    ConnectionLimit int
    The value of the limit to set.
    NetworkUrl string
    The network URL for the network to set the limit for.
    ProjectIdOrNum string
    The project id or number for the project to set the limit for.
    connectionLimit Integer
    The value of the limit to set.
    networkUrl String
    The network URL for the network to set the limit for.
    projectIdOrNum String
    The project id or number for the project to set the limit for.
    connectionLimit number
    The value of the limit to set.
    networkUrl string
    The network URL for the network to set the limit for.
    projectIdOrNum string
    The project id or number for the project to set the limit for.
    connection_limit int
    The value of the limit to set.
    network_url str
    The network URL for the network to set the limit for.
    project_id_or_num str
    The project id or number for the project to set the limit for.
    connectionLimit Number
    The value of the limit to set.
    networkUrl String
    The network URL for the network to set the limit for.
    projectIdOrNum String
    The project id or number for the project to set the limit for.

    Uint128Response

    High string
    Low string
    High string
    Low string
    high String
    low String
    high string
    low string
    high str
    low str
    high String
    low String

    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.32.0 published on Wednesday, Nov 29, 2023 by Pulumi