1. Registry
  2. Packages
  3. Google Cloud (GCP)
  4. API Docs
  5. apigee
  6. EndpointAttachment
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi

    An EndpointAttachment in Apigee is a resource that facilitates private connectivity between Apigee and backend services using Private Service Connect (PSC).

    For more information, see the Apigee documentation.

    To get more information about EndpointAttachment, see:

    Example Usage

    Apigee Endpoint Attachment Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const current = gcp.organizations.getClientConfig({});
    const apigeeNetwork = new gcp.compute.Network("apigee_network", {
        name: "apigee-network",
        project: current.then(current => current.project),
    });
    const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
        name: "apigee-range",
        purpose: "VPC_PEERING",
        addressType: "INTERNAL",
        prefixLength: 16,
        network: apigeeNetwork.id,
        project: current.then(current => current.project),
    });
    const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
        network: apigeeNetwork.id,
        service: "servicenetworking.googleapis.com",
        reservedPeeringRanges: [apigeeRange.name],
    });
    const producerServiceHealthCheck = new gcp.compute.HealthCheck("producer_service_health_check", {
        name: "producer-service-health-check",
        checkIntervalSec: 1,
        timeoutSec: 1,
        tcpHealthCheck: {
            port: 80,
        },
        project: current.then(current => current.project),
    });
    const producerServiceBackend = new gcp.compute.RegionBackendService("producer_service_backend", {
        name: "producer-service",
        region: "us-central1",
        healthChecks: producerServiceHealthCheck.id,
        project: current.then(current => current.project),
    });
    const pscIlbNetwork = new gcp.compute.Network("psc_ilb_network", {
        name: "psc-ilb-network",
        autoCreateSubnetworks: false,
        project: current.then(current => current.project),
    });
    const pscIlbProducerSubnetwork = new gcp.compute.Subnetwork("psc_ilb_producer_subnetwork", {
        name: "psc-ilb-producer-subnetwork",
        region: "us-central1",
        network: pscIlbNetwork.id,
        ipCidrRange: "10.0.99.0/24",
        project: current.then(current => current.project),
    });
    const pscIlbTargetService = new gcp.compute.ForwardingRule("psc_ilb_target_service", {
        name: "producer-forwarding-rule",
        region: "us-central1",
        loadBalancingScheme: "INTERNAL",
        backendService: producerServiceBackend.id,
        allPorts: true,
        network: pscIlbNetwork.name,
        subnetwork: pscIlbProducerSubnetwork.name,
        project: project.projectId,
    });
    const pscIlbNat = new gcp.compute.Subnetwork("psc_ilb_nat", {
        name: "psc-ilb-nat",
        region: "us-central1",
        network: pscIlbNetwork.id,
        purpose: "PRIVATE_SERVICE_CONNECT",
        ipCidrRange: "10.0.199.0/24",
        project: current.then(current => current.project),
    });
    const pscIlbServiceAttachment = new gcp.compute.ServiceAttachment("psc_ilb_service_attachment", {
        name: "my-psc-ilb",
        region: "us-central1",
        description: "A service attachment configured with Terraform",
        enableProxyProtocol: true,
        connectionPreference: "ACCEPT_AUTOMATIC",
        natSubnets: [pscIlbNat.id],
        targetService: pscIlbTargetService.id,
        project: current.then(current => current.project),
    });
    const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
        analyticsRegion: "us-central1",
        projectId: current.then(current => current.project),
        authorizedNetwork: apigeeNetwork.id,
    }, {
        dependsOn: [apigeeVpcConnection],
    });
    const apigeeEndpointAttachment = new gcp.apigee.EndpointAttachment("apigee_endpoint_attachment", {
        orgId: apigeeOrg.id,
        endpointAttachmentId: "tf-test_77884",
        location: "us-central1",
        serviceAttachment: pscIlbServiceAttachment.id,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    current = gcp.organizations.get_client_config()
    apigee_network = gcp.compute.Network("apigee_network",
        name="apigee-network",
        project=current.project)
    apigee_range = gcp.compute.GlobalAddress("apigee_range",
        name="apigee-range",
        purpose="VPC_PEERING",
        address_type="INTERNAL",
        prefix_length=16,
        network=apigee_network.id,
        project=current.project)
    apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
        network=apigee_network.id,
        service="servicenetworking.googleapis.com",
        reserved_peering_ranges=[apigee_range.name])
    producer_service_health_check = gcp.compute.HealthCheck("producer_service_health_check",
        name="producer-service-health-check",
        check_interval_sec=1,
        timeout_sec=1,
        tcp_health_check={
            "port": 80,
        },
        project=current.project)
    producer_service_backend = gcp.compute.RegionBackendService("producer_service_backend",
        name="producer-service",
        region="us-central1",
        health_checks=producer_service_health_check.id,
        project=current.project)
    psc_ilb_network = gcp.compute.Network("psc_ilb_network",
        name="psc-ilb-network",
        auto_create_subnetworks=False,
        project=current.project)
    psc_ilb_producer_subnetwork = gcp.compute.Subnetwork("psc_ilb_producer_subnetwork",
        name="psc-ilb-producer-subnetwork",
        region="us-central1",
        network=psc_ilb_network.id,
        ip_cidr_range="10.0.99.0/24",
        project=current.project)
    psc_ilb_target_service = gcp.compute.ForwardingRule("psc_ilb_target_service",
        name="producer-forwarding-rule",
        region="us-central1",
        load_balancing_scheme="INTERNAL",
        backend_service=producer_service_backend.id,
        all_ports=True,
        network=psc_ilb_network.name,
        subnetwork=psc_ilb_producer_subnetwork.name,
        project=project["projectId"])
    psc_ilb_nat = gcp.compute.Subnetwork("psc_ilb_nat",
        name="psc-ilb-nat",
        region="us-central1",
        network=psc_ilb_network.id,
        purpose="PRIVATE_SERVICE_CONNECT",
        ip_cidr_range="10.0.199.0/24",
        project=current.project)
    psc_ilb_service_attachment = gcp.compute.ServiceAttachment("psc_ilb_service_attachment",
        name="my-psc-ilb",
        region="us-central1",
        description="A service attachment configured with Terraform",
        enable_proxy_protocol=True,
        connection_preference="ACCEPT_AUTOMATIC",
        nat_subnets=[psc_ilb_nat.id],
        target_service=psc_ilb_target_service.id,
        project=current.project)
    apigee_org = gcp.apigee.Organization("apigee_org",
        analytics_region="us-central1",
        project_id=current.project,
        authorized_network=apigee_network.id,
        opts = pulumi.ResourceOptions(depends_on=[apigee_vpc_connection]))
    apigee_endpoint_attachment = gcp.apigee.EndpointAttachment("apigee_endpoint_attachment",
        org_id=apigee_org.id,
        endpoint_attachment_id="tf-test_77884",
        location="us-central1",
        service_attachment=psc_ilb_service_attachment.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/apigee"
    	"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/compute"
    	"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/organizations"
    	"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/servicenetworking"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		current, err := organizations.GetClientConfig(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
    			Name:    pulumi.String("apigee-network"),
    			Project: pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
    			Name:         pulumi.String("apigee-range"),
    			Purpose:      pulumi.String("VPC_PEERING"),
    			AddressType:  pulumi.String("INTERNAL"),
    			PrefixLength: pulumi.Int(16),
    			Network:      apigeeNetwork.ID(),
    			Project:      pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
    			Network: apigeeNetwork.ID(),
    			Service: pulumi.String("servicenetworking.googleapis.com"),
    			ReservedPeeringRanges: pulumi.StringArray{
    				apigeeRange.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		producerServiceHealthCheck, err := compute.NewHealthCheck(ctx, "producer_service_health_check", &compute.HealthCheckArgs{
    			Name:             pulumi.String("producer-service-health-check"),
    			CheckIntervalSec: pulumi.Int(1),
    			TimeoutSec:       pulumi.Int(1),
    			TcpHealthCheck: &compute.HealthCheckTcpHealthCheckArgs{
    				Port: pulumi.Int(80),
    			},
    			Project: pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		producerServiceBackend, err := compute.NewRegionBackendService(ctx, "producer_service_backend", &compute.RegionBackendServiceArgs{
    			Name:         pulumi.String("producer-service"),
    			Region:       pulumi.String("us-central1"),
    			HealthChecks: producerServiceHealthCheck.ID(),
    			Project:      pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		pscIlbNetwork, err := compute.NewNetwork(ctx, "psc_ilb_network", &compute.NetworkArgs{
    			Name:                  pulumi.String("psc-ilb-network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    			Project:               pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		pscIlbProducerSubnetwork, err := compute.NewSubnetwork(ctx, "psc_ilb_producer_subnetwork", &compute.SubnetworkArgs{
    			Name:        pulumi.String("psc-ilb-producer-subnetwork"),
    			Region:      pulumi.String("us-central1"),
    			Network:     pscIlbNetwork.ID(),
    			IpCidrRange: pulumi.String("10.0.99.0/24"),
    			Project:     pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		pscIlbTargetService, err := compute.NewForwardingRule(ctx, "psc_ilb_target_service", &compute.ForwardingRuleArgs{
    			Name:                pulumi.String("producer-forwarding-rule"),
    			Region:              pulumi.String("us-central1"),
    			LoadBalancingScheme: pulumi.String("INTERNAL"),
    			BackendService:      producerServiceBackend.ID(),
    			AllPorts:            pulumi.Bool(true),
    			Network:             pscIlbNetwork.Name,
    			Subnetwork:          pscIlbProducerSubnetwork.Name,
    			Project:             pulumi.Any(project.ProjectId),
    		})
    		if err != nil {
    			return err
    		}
    		pscIlbNat, err := compute.NewSubnetwork(ctx, "psc_ilb_nat", &compute.SubnetworkArgs{
    			Name:        pulumi.String("psc-ilb-nat"),
    			Region:      pulumi.String("us-central1"),
    			Network:     pscIlbNetwork.ID(),
    			Purpose:     pulumi.String("PRIVATE_SERVICE_CONNECT"),
    			IpCidrRange: pulumi.String("10.0.199.0/24"),
    			Project:     pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		pscIlbServiceAttachment, err := compute.NewServiceAttachment(ctx, "psc_ilb_service_attachment", &compute.ServiceAttachmentArgs{
    			Name:                 pulumi.String("my-psc-ilb"),
    			Region:               pulumi.String("us-central1"),
    			Description:          pulumi.String("A service attachment configured with Terraform"),
    			EnableProxyProtocol:  pulumi.Bool(true),
    			ConnectionPreference: pulumi.String("ACCEPT_AUTOMATIC"),
    			NatSubnets: pulumi.StringArray{
    				pscIlbNat.ID(),
    			},
    			TargetService: pscIlbTargetService.ID(),
    			Project:       pulumi.String(current.Project),
    		})
    		if err != nil {
    			return err
    		}
    		apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
    			AnalyticsRegion:   pulumi.String("us-central1"),
    			ProjectId:         pulumi.String(current.Project),
    			AuthorizedNetwork: apigeeNetwork.ID(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			apigeeVpcConnection,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = apigee.NewEndpointAttachment(ctx, "apigee_endpoint_attachment", &apigee.EndpointAttachmentArgs{
    			OrgId:                apigeeOrg.ID(),
    			EndpointAttachmentId: pulumi.String("tf-test_77884"),
    			Location:             pulumi.String("us-central1"),
    			ServiceAttachment:    pscIlbServiceAttachment.ID(),
    		})
    		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 current = Gcp.Organizations.GetClientConfig.Invoke();
    
        var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
        {
            Name = "apigee-network",
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
        {
            Name = "apigee-range",
            Purpose = "VPC_PEERING",
            AddressType = "INTERNAL",
            PrefixLength = 16,
            Network = apigeeNetwork.Id,
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
        {
            Network = apigeeNetwork.Id,
            Service = "servicenetworking.googleapis.com",
            ReservedPeeringRanges = new[]
            {
                apigeeRange.Name,
            },
        });
    
        var producerServiceHealthCheck = new Gcp.Compute.HealthCheck("producer_service_health_check", new()
        {
            Name = "producer-service-health-check",
            CheckIntervalSec = 1,
            TimeoutSec = 1,
            TcpHealthCheck = new Gcp.Compute.Inputs.HealthCheckTcpHealthCheckArgs
            {
                Port = 80,
            },
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var producerServiceBackend = new Gcp.Compute.RegionBackendService("producer_service_backend", new()
        {
            Name = "producer-service",
            Region = "us-central1",
            HealthChecks = producerServiceHealthCheck.Id,
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var pscIlbNetwork = new Gcp.Compute.Network("psc_ilb_network", new()
        {
            Name = "psc-ilb-network",
            AutoCreateSubnetworks = false,
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var pscIlbProducerSubnetwork = new Gcp.Compute.Subnetwork("psc_ilb_producer_subnetwork", new()
        {
            Name = "psc-ilb-producer-subnetwork",
            Region = "us-central1",
            Network = pscIlbNetwork.Id,
            IpCidrRange = "10.0.99.0/24",
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var pscIlbTargetService = new Gcp.Compute.ForwardingRule("psc_ilb_target_service", new()
        {
            Name = "producer-forwarding-rule",
            Region = "us-central1",
            LoadBalancingScheme = "INTERNAL",
            BackendService = producerServiceBackend.Id,
            AllPorts = true,
            Network = pscIlbNetwork.Name,
            Subnetwork = pscIlbProducerSubnetwork.Name,
            Project = project.ProjectId,
        });
    
        var pscIlbNat = new Gcp.Compute.Subnetwork("psc_ilb_nat", new()
        {
            Name = "psc-ilb-nat",
            Region = "us-central1",
            Network = pscIlbNetwork.Id,
            Purpose = "PRIVATE_SERVICE_CONNECT",
            IpCidrRange = "10.0.199.0/24",
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var pscIlbServiceAttachment = new Gcp.Compute.ServiceAttachment("psc_ilb_service_attachment", new()
        {
            Name = "my-psc-ilb",
            Region = "us-central1",
            Description = "A service attachment configured with Terraform",
            EnableProxyProtocol = true,
            ConnectionPreference = "ACCEPT_AUTOMATIC",
            NatSubnets = new[]
            {
                pscIlbNat.Id,
            },
            TargetService = pscIlbTargetService.Id,
            Project = current.Apply(getClientConfigResult => getClientConfigResult.Project),
        });
    
        var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
        {
            AnalyticsRegion = "us-central1",
            ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
            AuthorizedNetwork = apigeeNetwork.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                apigeeVpcConnection,
            },
        });
    
        var apigeeEndpointAttachment = new Gcp.Apigee.EndpointAttachment("apigee_endpoint_attachment", new()
        {
            OrgId = apigeeOrg.Id,
            EndpointAttachmentId = "tf-test_77884",
            Location = "us-central1",
            ServiceAttachment = pscIlbServiceAttachment.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.GlobalAddress;
    import com.pulumi.gcp.compute.GlobalAddressArgs;
    import com.pulumi.gcp.servicenetworking.Connection;
    import com.pulumi.gcp.servicenetworking.ConnectionArgs;
    import com.pulumi.gcp.compute.HealthCheck;
    import com.pulumi.gcp.compute.HealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.HealthCheckTcpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.ServiceAttachment;
    import com.pulumi.gcp.compute.ServiceAttachmentArgs;
    import com.pulumi.gcp.apigee.Organization;
    import com.pulumi.gcp.apigee.OrganizationArgs;
    import com.pulumi.gcp.apigee.EndpointAttachment;
    import com.pulumi.gcp.apigee.EndpointAttachmentArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 current = OrganizationsFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
                .name("apigee-network")
                .project(current.project())
                .build());
    
            var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
                .name("apigee-range")
                .purpose("VPC_PEERING")
                .addressType("INTERNAL")
                .prefixLength(16)
                .network(apigeeNetwork.id())
                .project(current.project())
                .build());
    
            var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
                .network(apigeeNetwork.id())
                .service("servicenetworking.googleapis.com")
                .reservedPeeringRanges(apigeeRange.name())
                .build());
    
            var producerServiceHealthCheck = new HealthCheck("producerServiceHealthCheck", HealthCheckArgs.builder()
                .name("producer-service-health-check")
                .checkIntervalSec(1)
                .timeoutSec(1)
                .tcpHealthCheck(HealthCheckTcpHealthCheckArgs.builder()
                    .port(80)
                    .build())
                .project(current.project())
                .build());
    
            var producerServiceBackend = new RegionBackendService("producerServiceBackend", RegionBackendServiceArgs.builder()
                .name("producer-service")
                .region("us-central1")
                .healthChecks(producerServiceHealthCheck.id())
                .project(current.project())
                .build());
    
            var pscIlbNetwork = new Network("pscIlbNetwork", NetworkArgs.builder()
                .name("psc-ilb-network")
                .autoCreateSubnetworks(false)
                .project(current.project())
                .build());
    
            var pscIlbProducerSubnetwork = new Subnetwork("pscIlbProducerSubnetwork", SubnetworkArgs.builder()
                .name("psc-ilb-producer-subnetwork")
                .region("us-central1")
                .network(pscIlbNetwork.id())
                .ipCidrRange("10.0.99.0/24")
                .project(current.project())
                .build());
    
            var pscIlbTargetService = new ForwardingRule("pscIlbTargetService", ForwardingRuleArgs.builder()
                .name("producer-forwarding-rule")
                .region("us-central1")
                .loadBalancingScheme("INTERNAL")
                .backendService(producerServiceBackend.id())
                .allPorts(true)
                .network(pscIlbNetwork.name())
                .subnetwork(pscIlbProducerSubnetwork.name())
                .project(project.get("projectId"))
                .build());
    
            var pscIlbNat = new Subnetwork("pscIlbNat", SubnetworkArgs.builder()
                .name("psc-ilb-nat")
                .region("us-central1")
                .network(pscIlbNetwork.id())
                .purpose("PRIVATE_SERVICE_CONNECT")
                .ipCidrRange("10.0.199.0/24")
                .project(current.project())
                .build());
    
            var pscIlbServiceAttachment = new ServiceAttachment("pscIlbServiceAttachment", ServiceAttachmentArgs.builder()
                .name("my-psc-ilb")
                .region("us-central1")
                .description("A service attachment configured with Terraform")
                .enableProxyProtocol(true)
                .connectionPreference("ACCEPT_AUTOMATIC")
                .natSubnets(pscIlbNat.id())
                .targetService(pscIlbTargetService.id())
                .project(current.project())
                .build());
    
            var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
                .analyticsRegion("us-central1")
                .projectId(current.project())
                .authorizedNetwork(apigeeNetwork.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(apigeeVpcConnection)
                    .build());
    
            var apigeeEndpointAttachment = new EndpointAttachment("apigeeEndpointAttachment", EndpointAttachmentArgs.builder()
                .orgId(apigeeOrg.id())
                .endpointAttachmentId("tf-test_77884")
                .location("us-central1")
                .serviceAttachment(pscIlbServiceAttachment.id())
                .build());
    
        }
    }
    
    resources:
      apigeeNetwork:
        type: gcp:compute:Network
        name: apigee_network
        properties:
          name: apigee-network
          project: ${current.project}
      apigeeRange:
        type: gcp:compute:GlobalAddress
        name: apigee_range
        properties:
          name: apigee-range
          purpose: VPC_PEERING
          addressType: INTERNAL
          prefixLength: 16
          network: ${apigeeNetwork.id}
          project: ${current.project}
      apigeeVpcConnection:
        type: gcp:servicenetworking:Connection
        name: apigee_vpc_connection
        properties:
          network: ${apigeeNetwork.id}
          service: servicenetworking.googleapis.com
          reservedPeeringRanges:
            - ${apigeeRange.name}
      pscIlbTargetService:
        type: gcp:compute:ForwardingRule
        name: psc_ilb_target_service
        properties:
          name: producer-forwarding-rule
          region: us-central1
          loadBalancingScheme: INTERNAL
          backendService: ${producerServiceBackend.id}
          allPorts: true
          network: ${pscIlbNetwork.name}
          subnetwork: ${pscIlbProducerSubnetwork.name}
          project: ${project.projectId}
      producerServiceBackend:
        type: gcp:compute:RegionBackendService
        name: producer_service_backend
        properties:
          name: producer-service
          region: us-central1
          healthChecks: ${producerServiceHealthCheck.id}
          project: ${current.project}
      producerServiceHealthCheck:
        type: gcp:compute:HealthCheck
        name: producer_service_health_check
        properties:
          name: producer-service-health-check
          checkIntervalSec: 1
          timeoutSec: 1
          tcpHealthCheck:
            port: '80'
          project: ${current.project}
      pscIlbNetwork:
        type: gcp:compute:Network
        name: psc_ilb_network
        properties:
          name: psc-ilb-network
          autoCreateSubnetworks: false
          project: ${current.project}
      pscIlbProducerSubnetwork:
        type: gcp:compute:Subnetwork
        name: psc_ilb_producer_subnetwork
        properties:
          name: psc-ilb-producer-subnetwork
          region: us-central1
          network: ${pscIlbNetwork.id}
          ipCidrRange: 10.0.99.0/24
          project: ${current.project}
      pscIlbNat:
        type: gcp:compute:Subnetwork
        name: psc_ilb_nat
        properties:
          name: psc-ilb-nat
          region: us-central1
          network: ${pscIlbNetwork.id}
          purpose: PRIVATE_SERVICE_CONNECT
          ipCidrRange: 10.0.199.0/24
          project: ${current.project}
      pscIlbServiceAttachment:
        type: gcp:compute:ServiceAttachment
        name: psc_ilb_service_attachment
        properties:
          name: my-psc-ilb
          region: us-central1
          description: A service attachment configured with Terraform
          enableProxyProtocol: true
          connectionPreference: ACCEPT_AUTOMATIC
          natSubnets:
            - ${pscIlbNat.id}
          targetService: ${pscIlbTargetService.id}
          project: ${current.project}
      apigeeOrg:
        type: gcp:apigee:Organization
        name: apigee_org
        properties:
          analyticsRegion: us-central1
          projectId: ${current.project}
          authorizedNetwork: ${apigeeNetwork.id}
        options:
          dependsOn:
            - ${apigeeVpcConnection}
      apigeeEndpointAttachment:
        type: gcp:apigee:EndpointAttachment
        name: apigee_endpoint_attachment
        properties:
          orgId: ${apigeeOrg.id}
          endpointAttachmentId: tf-test_77884
          location: us-central1
          serviceAttachment: ${pscIlbServiceAttachment.id}
    variables:
      current:
        fn::invoke:
          function: gcp:organizations:getClientConfig
          arguments: {}
    
    terraform {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    data "gcp_organizations_client_config" "current" {
    }
    
    resource "gcp_compute_network" "apigee_network" {
      lifecycle {
        create_before_destroy = true
      }
      name    = "apigee-network"
      project = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_compute_global_address" "apigee_range" {
      lifecycle {
        create_before_destroy = true
      }
      name          = "apigee-range"
      purpose       = "VPC_PEERING"
      address_type  = "INTERNAL"
      prefix_length = 16
      network       = gcp_compute_network.apigee_network.id
      project       = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_servicenetworking_connection" "apigee_vpc_connection" {
      lifecycle {
        create_before_destroy = true
      }
      network                 = gcp_compute_network.apigee_network.id
      service                 = "servicenetworking.googleapis.com"
      reserved_peering_ranges = [gcp_compute_global_address.apigee_range.name]
    }
    resource "gcp_compute_forwarding_rule" "psc_ilb_target_service" {
      lifecycle {
        create_before_destroy = true
      }
      name                  = "producer-forwarding-rule"
      region                = "us-central1"
      load_balancing_scheme = "INTERNAL"
      backend_service       = gcp_compute_region_backend_service.producer_service_backend.id
      all_ports             = true
      network               = gcp_compute_network.psc_ilb_network.name
      subnetwork            = gcp_compute_subnetwork.psc_ilb_producer_subnetwork.name
      project               = project.projectId
    }
    resource "gcp_compute_region_backend_service" "producer_service_backend" {
      lifecycle {
        create_before_destroy = true
      }
      name          = "producer-service"
      region        = "us-central1"
      health_checks = gcp_compute_health_check.producer_service_health_check.id
      project       = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_compute_health_check" "producer_service_health_check" {
      lifecycle {
        create_before_destroy = true
      }
      name               = "producer-service-health-check"
      check_interval_sec = 1
      timeout_sec        = 1
      tcp_health_check = {
        port = "80"
      }
      project = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_compute_network" "psc_ilb_network" {
      lifecycle {
        create_before_destroy = true
      }
      name                    = "psc-ilb-network"
      auto_create_subnetworks = false
      project                 = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_compute_subnetwork" "psc_ilb_producer_subnetwork" {
      lifecycle {
        create_before_destroy = true
      }
      name          = "psc-ilb-producer-subnetwork"
      region        = "us-central1"
      network       = gcp_compute_network.psc_ilb_network.id
      ip_cidr_range = "10.0.99.0/24"
      project       = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_compute_subnetwork" "psc_ilb_nat" {
      lifecycle {
        create_before_destroy = true
      }
      name          = "psc-ilb-nat"
      region        = "us-central1"
      network       = gcp_compute_network.psc_ilb_network.id
      purpose       = "PRIVATE_SERVICE_CONNECT"
      ip_cidr_range = "10.0.199.0/24"
      project       = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_compute_service_attachment" "psc_ilb_service_attachment" {
      lifecycle {
        create_before_destroy = true
      }
      name                  = "my-psc-ilb"
      region                = "us-central1"
      description           = "A service attachment configured with Terraform"
      enable_proxy_protocol = true
      connection_preference = "ACCEPT_AUTOMATIC"
      nat_subnets           = [gcp_compute_subnetwork.psc_ilb_nat.id]
      target_service        = gcp_compute_forwarding_rule.psc_ilb_target_service.id
      project               = data.gcp_organizations_client_config.current.project
    }
    resource "gcp_apigee_organization" "apigee_org" {
      depends_on = [gcp_servicenetworking_connection.apigee_vpc_connection]
      lifecycle {
        create_before_destroy = true
      }
      analytics_region   = "us-central1"
      project_id         = data.gcp_organizations_client_config.current.project
      authorized_network = gcp_compute_network.apigee_network.id
    }
    resource "gcp_apigee_endpoint_attachment" "apigee_endpoint_attachment" {
      lifecycle {
        create_before_destroy = true
      }
      org_id                 = gcp_apigee_organization.apigee_org.id
      endpoint_attachment_id = "tf-test_77884"
      location               = "us-central1"
      service_attachment     = gcp_compute_service_attachment.psc_ilb_service_attachment.id
    }
    

    Create EndpointAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EndpointAttachment(name: string, args: EndpointAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def EndpointAttachment(resource_name: str,
                           args: EndpointAttachmentArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def EndpointAttachment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           endpoint_attachment_id: Optional[str] = None,
                           location: Optional[str] = None,
                           org_id: Optional[str] = None,
                           service_attachment: Optional[str] = None,
                           deletion_policy: Optional[str] = None)
    func NewEndpointAttachment(ctx *Context, name string, args EndpointAttachmentArgs, opts ...ResourceOption) (*EndpointAttachment, error)
    public EndpointAttachment(string name, EndpointAttachmentArgs args, CustomResourceOptions? opts = null)
    public EndpointAttachment(String name, EndpointAttachmentArgs args)
    public EndpointAttachment(String name, EndpointAttachmentArgs args, CustomResourceOptions options)
    
    type: gcp:apigee:EndpointAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_apigee_endpoint_attachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EndpointAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EndpointAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EndpointAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EndpointAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EndpointAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var endpointAttachmentResource = new Gcp.Apigee.EndpointAttachment("endpointAttachmentResource", new()
    {
        EndpointAttachmentId = "string",
        Location = "string",
        OrgId = "string",
        ServiceAttachment = "string",
        DeletionPolicy = "string",
    });
    
    example, err := apigee.NewEndpointAttachment(ctx, "endpointAttachmentResource", &apigee.EndpointAttachmentArgs{
    	EndpointAttachmentId: pulumi.String("string"),
    	Location:             pulumi.String("string"),
    	OrgId:                pulumi.String("string"),
    	ServiceAttachment:    pulumi.String("string"),
    	DeletionPolicy:       pulumi.String("string"),
    })
    
    resource "gcp_apigee_endpoint_attachment" "endpointAttachmentResource" {
      lifecycle {
        create_before_destroy = true
      }
      endpoint_attachment_id = "string"
      location               = "string"
      org_id                 = "string"
      service_attachment     = "string"
      deletion_policy        = "string"
    }
    
    var endpointAttachmentResource = new com.pulumi.gcp.apigee.EndpointAttachment("endpointAttachmentResource", com.pulumi.gcp.apigee.EndpointAttachmentArgs.builder()
        .endpointAttachmentId("string")
        .location("string")
        .orgId("string")
        .serviceAttachment("string")
        .deletionPolicy("string")
        .build());
    
    endpoint_attachment_resource = gcp.apigee.EndpointAttachment("endpointAttachmentResource",
        endpoint_attachment_id="string",
        location="string",
        org_id="string",
        service_attachment="string",
        deletion_policy="string")
    
    const endpointAttachmentResource = new gcp.apigee.EndpointAttachment("endpointAttachmentResource", {
        endpointAttachmentId: "string",
        location: "string",
        orgId: "string",
        serviceAttachment: "string",
        deletionPolicy: "string",
    });
    
    type: gcp:apigee:EndpointAttachment
    properties:
        deletionPolicy: string
        endpointAttachmentId: string
        location: string
        orgId: string
        serviceAttachment: string
    

    EndpointAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EndpointAttachment resource accepts the following input properties:

    EndpointAttachmentId string
    ID of the endpoint attachment.
    Location string
    The location of the endpoint attachment.
    OrgId string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    ServiceAttachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    EndpointAttachmentId string
    ID of the endpoint attachment.
    Location string
    The location of the endpoint attachment.
    OrgId string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    ServiceAttachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpoint_attachment_id string
    ID of the endpoint attachment.
    location string
    The location of the endpoint attachment.
    org_id string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    service_attachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpointAttachmentId String
    ID of the endpoint attachment.
    location String
    The location of the endpoint attachment.
    orgId String
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    serviceAttachment String
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpointAttachmentId string
    ID of the endpoint attachment.
    location string
    The location of the endpoint attachment.
    orgId string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    serviceAttachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpoint_attachment_id str
    ID of the endpoint attachment.
    location str
    The location of the endpoint attachment.
    org_id str
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    service_attachment str
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpointAttachmentId String
    ID of the endpoint attachment.
    location String
    The location of the endpoint attachment.
    orgId String
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    serviceAttachment String
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EndpointAttachment resource produces the following output properties:

    ConnectionState string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    Host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    ConnectionState string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    Host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    connection_state string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    connectionState String
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    host String
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    connectionState string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    connection_state str
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    host str
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    connectionState String
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    host String
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.

    Look up Existing EndpointAttachment Resource

    Get an existing EndpointAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EndpointAttachmentState, opts?: CustomResourceOptions): EndpointAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connection_state: Optional[str] = None,
            deletion_policy: Optional[str] = None,
            endpoint_attachment_id: Optional[str] = None,
            host: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            service_attachment: Optional[str] = None) -> EndpointAttachment
    func GetEndpointAttachment(ctx *Context, name string, id IDInput, state *EndpointAttachmentState, opts ...ResourceOption) (*EndpointAttachment, error)
    public static EndpointAttachment Get(string name, Input<string> id, EndpointAttachmentState? state, CustomResourceOptions? opts = null)
    public static EndpointAttachment get(String name, Output<String> id, EndpointAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: gcp:apigee:EndpointAttachment    get:      id: ${id}
    import {
      to = gcp_apigee_endpoint_attachment.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConnectionState string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    EndpointAttachmentId string
    ID of the endpoint attachment.
    Host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    Location string
    The location of the endpoint attachment.
    Name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    OrgId string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    ServiceAttachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    ConnectionState string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    EndpointAttachmentId string
    ID of the endpoint attachment.
    Host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    Location string
    The location of the endpoint attachment.
    Name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    OrgId string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    ServiceAttachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    connection_state string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpoint_attachment_id string
    ID of the endpoint attachment.
    host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    location string
    The location of the endpoint attachment.
    name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    org_id string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    service_attachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    connectionState String
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpointAttachmentId String
    ID of the endpoint attachment.
    host String
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    location String
    The location of the endpoint attachment.
    name String
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    orgId String
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    serviceAttachment String
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    connectionState string
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpointAttachmentId string
    ID of the endpoint attachment.
    host string
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    location string
    The location of the endpoint attachment.
    name string
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    orgId string
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    serviceAttachment string
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    connection_state str
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpoint_attachment_id str
    ID of the endpoint attachment.
    host str
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    location str
    The location of the endpoint attachment.
    name str
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    org_id str
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    service_attachment str
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.
    connectionState String
    State of the endpoint attachment connection to the service attachment. Possible values are: CONNECTION_STATE_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, 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.
    endpointAttachmentId String
    ID of the endpoint attachment.
    host String
    Host that can be used in either HTTP Target Endpoint directly, or as the host in Target Server.
    location String
    The location of the endpoint attachment.
    name String
    Name of the Endpoint Attachment in the following format: organizations/{organization}/endpointAttachments/{endpointAttachment}.
    orgId String
    The Apigee Organization associated with the Apigee instance, in the format organizations/{{org_name}}.
    serviceAttachment String
    The resource URL of the service attachment in the format: projects/*/regions/*/serviceAttachments/*.

    Import

    EndpointAttachment can be imported using any of these accepted formats:

    • {{org_id}}/endpointAttachments/{{endpoint_attachment_id}}
    • {{org_id}}/{{endpoint_attachment_id}}

    When using the pulumi import command, EndpointAttachment can be imported using one of the formats above. For example:

    $ pulumi import gcp:apigee/endpointAttachment:EndpointAttachment default {{org_id}}/endpointAttachments/{{endpoint_attachment_id}}
    $ pulumi import gcp:apigee/endpointAttachment:EndpointAttachment default {{org_id}}/{{endpoint_attachment_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v10.2.0
    published on Tuesday, Oct 20, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial