published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
List all service attachments in a given project and region. For more information see the official documentation and API reference.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const all = gcp.compute.getServiceAttachments({
project: "my-project",
region: "us-central1",
});
import pulumi
import pulumi_gcp as gcp
all = gcp.compute.get_service_attachments(project="my-project",
region="us-central1")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.GetServiceAttachments(ctx, &compute.GetServiceAttachmentsArgs{
Project: pulumi.StringRef("my-project"),
Region: pulumi.StringRef("us-central1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var all = Gcp.Compute.GetServiceAttachments.Invoke(new()
{
Project = "my-project",
Region = "us-central1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetServiceAttachmentsArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var all = ComputeFunctions.getServiceAttachments(GetServiceAttachmentsArgs.builder()
.project("my-project")
.region("us-central1")
.build());
}
}
variables:
all:
fn::invoke:
function: gcp:compute:getServiceAttachments
arguments:
project: my-project
region: us-central1
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_compute_service_attachments" "all" {
project = "my-project"
region = "us-central1"
}
With Filter
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const filtered = gcp.compute.getServiceAttachments({
project: "my-project",
region: "us-central1",
filter: "name = my-service-attachment",
});
import pulumi
import pulumi_gcp as gcp
filtered = gcp.compute.get_service_attachments(project="my-project",
region="us-central1",
filter="name = my-service-attachment")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.GetServiceAttachments(ctx, &compute.GetServiceAttachmentsArgs{
Project: pulumi.StringRef("my-project"),
Region: pulumi.StringRef("us-central1"),
Filter: pulumi.StringRef("name = my-service-attachment"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var filtered = Gcp.Compute.GetServiceAttachments.Invoke(new()
{
Project = "my-project",
Region = "us-central1",
Filter = "name = my-service-attachment",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetServiceAttachmentsArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var filtered = ComputeFunctions.getServiceAttachments(GetServiceAttachmentsArgs.builder()
.project("my-project")
.region("us-central1")
.filter("name = my-service-attachment")
.build());
}
}
variables:
filtered:
fn::invoke:
function: gcp:compute:getServiceAttachments
arguments:
project: my-project
region: us-central1
filter: name = my-service-attachment
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_compute_service_attachments" "filtered" {
project = "my-project"
region = "us-central1"
filter = "name = my-service-attachment"
}
Using getServiceAttachments
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 getServiceAttachments(args: GetServiceAttachmentsArgs, opts?: InvokeOptions): Promise<GetServiceAttachmentsResult>
function getServiceAttachmentsOutput(args: GetServiceAttachmentsOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceAttachmentsResult>def get_service_attachments(filter: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceAttachmentsResult
def get_service_attachments_output(filter: pulumi.Input[Optional[str]] = None,
project: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceAttachmentsResult]func GetServiceAttachments(ctx *Context, args *GetServiceAttachmentsArgs, opts ...InvokeOption) (*GetServiceAttachmentsResult, error)
func GetServiceAttachmentsOutput(ctx *Context, args *GetServiceAttachmentsOutputArgs, opts ...InvokeOption) GetServiceAttachmentsResultOutput> Note: This function is named GetServiceAttachments in the Go SDK.
public static class GetServiceAttachments
{
public static Task<GetServiceAttachmentsResult> InvokeAsync(GetServiceAttachmentsArgs args, InvokeOptions? opts = null)
public static Output<GetServiceAttachmentsResult> Invoke(GetServiceAttachmentsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetServiceAttachmentsResult> Invoke(GetServiceAttachmentsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetServiceAttachmentsResult> getServiceAttachments(GetServiceAttachmentsArgs args, InvokeOptions options)
public static Output<GetServiceAttachmentsResult> getServiceAttachments(GetServiceAttachmentsArgs args, InvokeOptions options)
public static Output<GetServiceAttachmentsResult> getServiceAttachments(GetServiceAttachmentsArgs args, InvokeOutputOptions options)
fn::invoke:
function: gcp:compute/getServiceAttachments:getServiceAttachments
arguments:
# arguments dictionarydata "gcp_compute_get_service_attachments" "name" {
# arguments
}The following arguments are supported:
- Filter string
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- Filter string
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- filter string
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- filter String
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- The region in which the resource belongs. If it is not provided, the provider region is used.
- filter string
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- filter str
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - project str
- The project in which the resource belongs. If it is not provided, the provider project is used.
- region str
- The region in which the resource belongs. If it is not provided, the provider region is used.
- filter String
- A filter expression that filters service attachments listed in the
response. See the
API
filterparameter documentation for details. - project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- The region in which the resource belongs. If it is not provided, the provider region is used.
getServiceAttachments Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Attachments List<GetService Attachments Service Attachment> - A list of service attachments matching the provided filter. Each element contains:
- Filter string
- Project string
- Region string
- The region of the service attachment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Attachments []GetService Attachments Service Attachment - A list of service attachments matching the provided filter. Each element contains:
- Filter string
- Project string
- Region string
- The region of the service attachment.
- id string
- The provider-assigned unique ID for this managed resource.
- service_
attachments list(object) - A list of service attachments matching the provided filter. Each element contains:
- filter string
- project string
- region string
- The region of the service attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Attachments List<GetService Attachments Service Attachment> - A list of service attachments matching the provided filter. Each element contains:
- filter String
- project String
- region String
- The region of the service attachment.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Attachments GetService Attachments Service Attachment[] - A list of service attachments matching the provided filter. Each element contains:
- filter string
- project string
- region string
- The region of the service attachment.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
attachments Sequence[GetService Attachments Service Attachment] - A list of service attachments matching the provided filter. Each element contains:
- filter str
- project str
- region str
- The region of the service attachment.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Attachments List<Property Map> - A list of service attachments matching the provided filter. Each element contains:
- filter String
- project String
- region String
- The region of the service attachment.
Supporting Types
GetServiceAttachmentsServiceAttachment
- Connected
Endpoints List<GetService Attachments Service Attachment Connected Endpoint> - An array of the consumer forwarding rules connected to this service attachment.
- Connection
Preference string - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - Consumer
Accept List<GetLists Service Attachments Service Attachment Consumer Accept List> - An array of projects that are allowed to connect to this service attachment.
- Consumer
Reject List<string>Lists - An array of projects that are not allowed to connect to this service attachment.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- An optional description of the service attachment.
- Domain
Names List<string> - A list of domain names for the service attachment.
- Enable
Proxy boolProtocol - Whether the proxy protocol is enabled on the service attachment.
- Fingerprint string
- The fingerprint of the service attachment.
- Name string
- The name of the service attachment.
- Nat
Ips intPer Endpoint - The number of NAT IPs allocated per connected endpoint.
- Nat
Subnets List<string> - A list of URLs of subnetworks used for NAT in this service attachment.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- Propagated
Connection intLimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- Psc
Service List<GetAttachment Ids Service Attachments Service Attachment Psc Service Attachment Id> - 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.
- Region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- Self
Link string - The URI of the service attachment.
- Send
Propagated boolConnection Limit If Zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- Show
Nat boolIps - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- Target
Service string - The URL of the forwarding rule that represents the service identified by this service attachment.
- Tunneling
Configs List<GetService Attachments Service Attachment Tunneling Config> - Tunneling configuration for this service attachment.
- Connected
Endpoints []GetService Attachments Service Attachment Connected Endpoint - An array of the consumer forwarding rules connected to this service attachment.
- Connection
Preference string - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - Consumer
Accept []GetLists Service Attachments Service Attachment Consumer Accept List - An array of projects that are allowed to connect to this service attachment.
- Consumer
Reject []stringLists - An array of projects that are not allowed to connect to this service attachment.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- An optional description of the service attachment.
- Domain
Names []string - A list of domain names for the service attachment.
- Enable
Proxy boolProtocol - Whether the proxy protocol is enabled on the service attachment.
- Fingerprint string
- The fingerprint of the service attachment.
- Name string
- The name of the service attachment.
- Nat
Ips intPer Endpoint - The number of NAT IPs allocated per connected endpoint.
- Nat
Subnets []string - A list of URLs of subnetworks used for NAT in this service attachment.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- Propagated
Connection intLimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- Psc
Service []GetAttachment Ids Service Attachments Service Attachment Psc Service Attachment Id - 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.
- Region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- Self
Link string - The URI of the service attachment.
- Send
Propagated boolConnection Limit If Zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- Show
Nat boolIps - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- Target
Service string - The URL of the forwarding rule that represents the service identified by this service attachment.
- Tunneling
Configs []GetService Attachments Service Attachment Tunneling Config - Tunneling configuration for this service attachment.
- connected_
endpoints list(object) - An array of the consumer forwarding rules connected to this service attachment.
- connection_
preference string - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - consumer_
accept_ list(object)lists - An array of projects that are allowed to connect to this service attachment.
- consumer_
reject_ list(string)lists - An array of projects that are not allowed to connect to this service attachment.
- deletion_
policy string - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- An optional description of the service attachment.
- domain_
names list(string) - A list of domain names for the service attachment.
- enable_
proxy_ boolprotocol - Whether the proxy protocol is enabled on the service attachment.
- fingerprint string
- The fingerprint of the service attachment.
- name string
- The name of the service attachment.
- nat_
ips_ numberper_ endpoint - The number of NAT IPs allocated per connected endpoint.
- nat_
subnets list(string) - A list of URLs of subnetworks used for NAT in this service attachment.
- project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- propagated_
connection_ numberlimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- psc_
service_ list(object)attachment_ ids - 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.
- region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- self_
link string - The URI of the service attachment.
- send_
propagated_ boolconnection_ limit_ if_ zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- show_
nat_ boolips - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- target_
service string - The URL of the forwarding rule that represents the service identified by this service attachment.
- tunneling_
configs list(object) - Tunneling configuration for this service attachment.
- connected
Endpoints List<GetService Attachments Service Attachment Connected Endpoint> - An array of the consumer forwarding rules connected to this service attachment.
- connection
Preference String - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - consumer
Accept List<GetLists Service Attachments Service Attachment Consumer Accept List> - An array of projects that are allowed to connect to this service attachment.
- consumer
Reject List<String>Lists - An array of projects that are not allowed to connect to this service attachment.
- deletion
Policy String - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- An optional description of the service attachment.
- domain
Names List<String> - A list of domain names for the service attachment.
- enable
Proxy BooleanProtocol - Whether the proxy protocol is enabled on the service attachment.
- fingerprint String
- The fingerprint of the service attachment.
- name String
- The name of the service attachment.
- nat
Ips IntegerPer Endpoint - The number of NAT IPs allocated per connected endpoint.
- nat
Subnets List<String> - A list of URLs of subnetworks used for NAT in this service attachment.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- propagated
Connection IntegerLimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- psc
Service List<GetAttachment Ids Service Attachments Service Attachment Psc Service Attachment Id> - An 128-bit global unique ID of the PSC service attachment.
- reconcile
Connections 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.
- region String
- The region in which the resource belongs. If it is not provided, the provider region is used.
- self
Link String - The URI of the service attachment.
- send
Propagated BooleanConnection Limit If Zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- show
Nat BooleanIps - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- target
Service String - The URL of the forwarding rule that represents the service identified by this service attachment.
- tunneling
Configs List<GetService Attachments Service Attachment Tunneling Config> - Tunneling configuration for this service attachment.
- connected
Endpoints GetService Attachments Service Attachment Connected Endpoint[] - An array of the consumer forwarding rules connected to this service attachment.
- connection
Preference string - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - consumer
Accept GetLists Service Attachments Service Attachment Consumer Accept List[] - An array of projects that are allowed to connect to this service attachment.
- consumer
Reject string[]Lists - An array of projects that are not allowed to connect to this service attachment.
- deletion
Policy string - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- An optional description of the service attachment.
- domain
Names string[] - A list of domain names for the service attachment.
- enable
Proxy booleanProtocol - Whether the proxy protocol is enabled on the service attachment.
- fingerprint string
- The fingerprint of the service attachment.
- name string
- The name of the service attachment.
- nat
Ips numberPer Endpoint - The number of NAT IPs allocated per connected endpoint.
- nat
Subnets string[] - A list of URLs of subnetworks used for NAT in this service attachment.
- project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- propagated
Connection numberLimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- psc
Service GetAttachment Ids Service Attachments Service Attachment Psc Service Attachment Id[] - An 128-bit global unique ID of the PSC service attachment.
- reconcile
Connections 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.
- region string
- The region in which the resource belongs. If it is not provided, the provider region is used.
- self
Link string - The URI of the service attachment.
- send
Propagated booleanConnection Limit If Zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- show
Nat booleanIps - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- target
Service string - The URL of the forwarding rule that represents the service identified by this service attachment.
- tunneling
Configs GetService Attachments Service Attachment Tunneling Config[] - Tunneling configuration for this service attachment.
- connected_
endpoints Sequence[GetService Attachments Service Attachment Connected Endpoint] - An array of the consumer forwarding rules connected to this service attachment.
- connection_
preference str - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - consumer_
accept_ Sequence[Getlists Service Attachments Service Attachment Consumer Accept List] - An array of projects that are allowed to connect to this service attachment.
- consumer_
reject_ Sequence[str]lists - An array of projects that are not allowed to connect to this service attachment.
- deletion_
policy str - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- An optional description of the service attachment.
- domain_
names Sequence[str] - A list of domain names for the service attachment.
- enable_
proxy_ boolprotocol - Whether the proxy protocol is enabled on the service attachment.
- fingerprint str
- The fingerprint of the service attachment.
- name str
- The name of the service attachment.
- nat_
ips_ intper_ endpoint - The number of NAT IPs allocated per connected endpoint.
- nat_
subnets Sequence[str] - A list of URLs of subnetworks used for NAT in this service attachment.
- project str
- The project in which the resource belongs. If it is not provided, the provider project is used.
- propagated_
connection_ intlimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- psc_
service_ Sequence[Getattachment_ ids Service Attachments Service Attachment Psc Service Attachment Id] - 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.
- region str
- The region in which the resource belongs. If it is not provided, the provider region is used.
- self_
link str - The URI of the service attachment.
- send_
propagated_ boolconnection_ limit_ if_ zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- show_
nat_ boolips - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- target_
service str - The URL of the forwarding rule that represents the service identified by this service attachment.
- tunneling_
configs Sequence[GetService Attachments Service Attachment Tunneling Config] - Tunneling configuration for this service attachment.
- connected
Endpoints List<Property Map> - An array of the consumer forwarding rules connected to this service attachment.
- connection
Preference String - The connection preference of the service attachment.
Possible values are
ACCEPT_AUTOMATICandACCEPT_MANUAL. - consumer
Accept List<Property Map>Lists - An array of projects that are allowed to connect to this service attachment.
- consumer
Reject List<String>Lists - An array of projects that are not allowed to connect to this service attachment.
- deletion
Policy String - Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE". When a 'terraform destroy' or 'terraform apply' would delete the instance, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- An optional description of the service attachment.
- domain
Names List<String> - A list of domain names for the service attachment.
- enable
Proxy BooleanProtocol - Whether the proxy protocol is enabled on the service attachment.
- fingerprint String
- The fingerprint of the service attachment.
- name String
- The name of the service attachment.
- nat
Ips NumberPer Endpoint - The number of NAT IPs allocated per connected endpoint.
- nat
Subnets List<String> - A list of URLs of subnetworks used for NAT in this service attachment.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- propagated
Connection NumberLimit The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer.
If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint.
If unspecified, the default propagated connection limit is 250. To explicitly send a zero value, set 'send_propagated_connection_limit_if_zero = true'.
- psc
Service List<Property Map>Attachment Ids - An 128-bit global unique ID of the PSC service attachment.
- reconcile
Connections 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.
- region String
- The region in which the resource belongs. If it is not provided, the provider region is used.
- self
Link String - The URI of the service attachment.
- send
Propagated BooleanConnection Limit If Zero - Controls the behavior of propagated_connection_limit. When false, setting propagatedConnectionLimit to zero causes the provider to use to the API's default value. When true, the provider will set propagatedConnectionLimit to zero. Defaults to false.
- show
Nat BooleanIps - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. [If true, show NAT IPs of all connected endpoints.]
- target
Service String - The URL of the forwarding rule that represents the service identified by this service attachment.
- tunneling
Configs List<Property Map> - Tunneling configuration for this service attachment.
GetServiceAttachmentsServiceAttachmentConnectedEndpoint
- Consumer
Network string - The url of the consumer network.
- Endpoint string
- The URL of the consumer forwarding rule.
- Nat
Ips List<string> - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- Propagated
Connection intCount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- Psc
Connection stringId - The PSC connection id of the connected endpoint.
- Status string
- The status of the connection from the consumer forwarding rule to this service attachment.
- Consumer
Network string - The url of the consumer network.
- Endpoint string
- The URL of the consumer forwarding rule.
- Nat
Ips []string - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- Propagated
Connection intCount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- Psc
Connection stringId - The PSC connection id of the connected endpoint.
- Status string
- The status of the connection from the consumer forwarding rule to this service attachment.
- consumer_
network string - The url of the consumer network.
- endpoint string
- The URL of the consumer forwarding rule.
- nat_
ips list(string) - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- propagated_
connection_ numbercount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- psc_
connection_ stringid - The PSC connection id of the connected endpoint.
- status string
- The status of the connection from the consumer forwarding rule to this service attachment.
- consumer
Network String - The url of the consumer network.
- endpoint String
- The URL of the consumer forwarding rule.
- nat
Ips List<String> - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- propagated
Connection IntegerCount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- psc
Connection StringId - The PSC connection id of the connected endpoint.
- status String
- The status of the connection from the consumer forwarding rule to this service attachment.
- consumer
Network string - The url of the consumer network.
- endpoint string
- The URL of the consumer forwarding rule.
- nat
Ips string[] - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- propagated
Connection numberCount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- psc
Connection stringId - The PSC connection id of the connected endpoint.
- status string
- The status of the connection from the consumer forwarding rule to this service attachment.
- consumer_
network str - The url of the consumer network.
- endpoint str
- The URL of the consumer forwarding rule.
- nat_
ips Sequence[str] - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- propagated_
connection_ intcount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- psc_
connection_ strid - The PSC connection id of the connected endpoint.
- status str
- The status of the connection from the consumer forwarding rule to this service attachment.
- consumer
Network String - The url of the consumer network.
- endpoint String
- The URL of the consumer forwarding rule.
- nat
Ips List<String> - NOTE: This field is temporarily non-functional due to an underlying API issue. Any value provided here will be ignored until the API issue is resolved, expected around 2026-03. 'The nat IPs of the connected endpoint.'
- propagated
Connection NumberCount - The number of consumer Network Connectivity Center spokes that the connected Private Service Connect endpoint has propagated to.
- psc
Connection StringId - The PSC connection id of the connected endpoint.
- status String
- The status of the connection from the consumer forwarding rule to this service attachment.
GetServiceAttachmentsServiceAttachmentConsumerAcceptList
- Connection
Limit int - The number of consumer forwarding rules the consumer project can create.
- Endpoint
Url string - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- Network
Url string - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- Project
Id stringOr Num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- Connection
Limit int - The number of consumer forwarding rules the consumer project can create.
- Endpoint
Url string - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- Network
Url string - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- Project
Id stringOr Num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- connection_
limit number - The number of consumer forwarding rules the consumer project can create.
- endpoint_
url string - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- network_
url string - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- project_
id_ stringor_ num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- connection
Limit Integer - The number of consumer forwarding rules the consumer project can create.
- endpoint
Url String - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- network
Url String - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- project
Id StringOr Num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- connection
Limit number - The number of consumer forwarding rules the consumer project can create.
- endpoint
Url string - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- network
Url string - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- project
Id stringOr Num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- connection_
limit int - The number of consumer forwarding rules the consumer project can create.
- endpoint_
url str - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- network_
url str - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- project_
id_ stror_ num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- connection
Limit Number - The number of consumer forwarding rules the consumer project can create.
- endpoint
Url String - The endpoint that is allowed to connect to this service attachment. Only one of project_id_or_num, networkUrl and endpointUrl may be set.
- network
Url String - The network that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
- project
Id StringOr Num - A project that is allowed to connect to this service attachment. Only one of projectIdOrNum and networkUrl may be set.
GetServiceAttachmentsServiceAttachmentPscServiceAttachmentId
GetServiceAttachmentsServiceAttachmentTunnelingConfig
- Encapsulation
Profile string - The encapsulation profile for tunneling traffic.
- Routing
Mode string - The routing mode for tunneling traffic.
- Encapsulation
Profile string - The encapsulation profile for tunneling traffic.
- Routing
Mode string - The routing mode for tunneling traffic.
- encapsulation_
profile string - The encapsulation profile for tunneling traffic.
- routing_
mode string - The routing mode for tunneling traffic.
- encapsulation
Profile String - The encapsulation profile for tunneling traffic.
- routing
Mode String - The routing mode for tunneling traffic.
- encapsulation
Profile string - The encapsulation profile for tunneling traffic.
- routing
Mode string - The routing mode for tunneling traffic.
- encapsulation_
profile str - The encapsulation profile for tunneling traffic.
- routing_
mode str - The routing mode for tunneling traffic.
- encapsulation
Profile String - The encapsulation profile for tunneling traffic.
- routing
Mode String - The routing mode for tunneling traffic.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Tuesday, Oct 20, 2026 by Pulumi