1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsPrivatePathServiceGatewayEndpointGatewayBindings
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsPrivatePathServiceGatewayEndpointGatewayBindings

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for PrivatePathServiceGatewayEndpointGatewayBindingCollection. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
    const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
        vpc: exampleIsVpc.isVpcId,
        zone: "us-south-2",
        ipv4CidrBlock: "10.240.0.0/24",
    });
    const exampleIsLb = new ibm.IsLb("exampleIsLb", {subnets: [exampleIsSubnet.isSubnetId]});
    const exampleIsPrivatePathServiceGateway = new ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", {
        defaultAccessPolicy: "review",
        loadBalancer: exampleIsLb.isLbId,
        zonalAffinity: true,
        serviceEndpoints: ["example-fqdn"],
    });
    const exampleIsPrivatePathServiceGatewayEndpointGatewayBindings = ibm.getIsPrivatePathServiceGatewayEndpointGatewayBindingsOutput({
        status: "pending",
        privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example_is_vpc = ibm.IsVpc("exampleIsVpc")
    example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
        vpc=example_is_vpc.is_vpc_id,
        zone="us-south-2",
        ipv4_cidr_block="10.240.0.0/24")
    example_is_lb = ibm.IsLb("exampleIsLb", subnets=[example_is_subnet.is_subnet_id])
    example_is_private_path_service_gateway = ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway",
        default_access_policy="review",
        load_balancer=example_is_lb.is_lb_id,
        zonal_affinity=True,
        service_endpoints=["example-fqdn"])
    example_is_private_path_service_gateway_endpoint_gateway_bindings = ibm.get_is_private_path_service_gateway_endpoint_gateway_bindings_output(status="pending",
        private_path_service_gateway=example_is_private_path_service_gateway.is_private_path_service_gateway_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
    		if err != nil {
    			return err
    		}
    		exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
    			Vpc:           exampleIsVpc.IsVpcId,
    			Zone:          pulumi.String("us-south-2"),
    			Ipv4CidrBlock: pulumi.String("10.240.0.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsLb, err := ibm.NewIsLb(ctx, "exampleIsLb", &ibm.IsLbArgs{
    			Subnets: pulumi.StringArray{
    				exampleIsSubnet.IsSubnetId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsPrivatePathServiceGateway, err := ibm.NewIsPrivatePathServiceGateway(ctx, "exampleIsPrivatePathServiceGateway", &ibm.IsPrivatePathServiceGatewayArgs{
    			DefaultAccessPolicy: pulumi.String("review"),
    			LoadBalancer:        exampleIsLb.IsLbId,
    			ZonalAffinity:       pulumi.Bool(true),
    			ServiceEndpoints: pulumi.StringArray{
    				pulumi.String("example-fqdn"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = ibm.GetIsPrivatePathServiceGatewayEndpointGatewayBindingsOutput(ctx, ibm.GetIsPrivatePathServiceGatewayEndpointGatewayBindingsOutputArgs{
    			Status:                    pulumi.String("pending"),
    			PrivatePathServiceGateway: exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
    
        var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
        {
            Vpc = exampleIsVpc.IsVpcId,
            Zone = "us-south-2",
            Ipv4CidrBlock = "10.240.0.0/24",
        });
    
        var exampleIsLb = new Ibm.IsLb("exampleIsLb", new()
        {
            Subnets = new[]
            {
                exampleIsSubnet.IsSubnetId,
            },
        });
    
        var exampleIsPrivatePathServiceGateway = new Ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", new()
        {
            DefaultAccessPolicy = "review",
            LoadBalancer = exampleIsLb.IsLbId,
            ZonalAffinity = true,
            ServiceEndpoints = new[]
            {
                "example-fqdn",
            },
        });
    
        var exampleIsPrivatePathServiceGatewayEndpointGatewayBindings = Ibm.GetIsPrivatePathServiceGatewayEndpointGatewayBindings.Invoke(new()
        {
            Status = "pending",
            PrivatePathServiceGateway = exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IsVpc;
    import com.pulumi.ibm.IsSubnet;
    import com.pulumi.ibm.IsSubnetArgs;
    import com.pulumi.ibm.IsLb;
    import com.pulumi.ibm.IsLbArgs;
    import com.pulumi.ibm.IsPrivatePathServiceGateway;
    import com.pulumi.ibm.IsPrivatePathServiceGatewayArgs;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            var exampleIsVpc = new IsVpc("exampleIsVpc");
    
            var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
                .vpc(exampleIsVpc.isVpcId())
                .zone("us-south-2")
                .ipv4CidrBlock("10.240.0.0/24")
                .build());
    
            var exampleIsLb = new IsLb("exampleIsLb", IsLbArgs.builder()
                .subnets(exampleIsSubnet.isSubnetId())
                .build());
    
            var exampleIsPrivatePathServiceGateway = new IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", IsPrivatePathServiceGatewayArgs.builder()
                .defaultAccessPolicy("review")
                .loadBalancer(exampleIsLb.isLbId())
                .zonalAffinity(true)
                .serviceEndpoints("example-fqdn")
                .build());
    
            final var exampleIsPrivatePathServiceGatewayEndpointGatewayBindings = IbmFunctions.getIsPrivatePathServiceGatewayEndpointGatewayBindings(GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs.builder()
                .status("pending")
                .privatePathServiceGateway(exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId())
                .build());
    
        }
    }
    
    resources:
      exampleIsVpc:
        type: ibm:IsVpc
      exampleIsSubnet:
        type: ibm:IsSubnet
        properties:
          vpc: ${exampleIsVpc.isVpcId}
          zone: us-south-2
          ipv4CidrBlock: 10.240.0.0/24
      exampleIsLb:
        type: ibm:IsLb
        properties:
          subnets:
            - ${exampleIsSubnet.isSubnetId}
      exampleIsPrivatePathServiceGateway:
        type: ibm:IsPrivatePathServiceGateway
        properties:
          defaultAccessPolicy: review
          loadBalancer: ${exampleIsLb.isLbId}
          zonalAffinity: true
          serviceEndpoints:
            - example-fqdn
    variables:
      exampleIsPrivatePathServiceGatewayEndpointGatewayBindings:
        fn::invoke:
          function: ibm:getIsPrivatePathServiceGatewayEndpointGatewayBindings
          arguments:
            status: pending
            privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
    

    Using getIsPrivatePathServiceGatewayEndpointGatewayBindings

    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 getIsPrivatePathServiceGatewayEndpointGatewayBindings(args: GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs, opts?: InvokeOptions): Promise<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult>
    function getIsPrivatePathServiceGatewayEndpointGatewayBindingsOutput(args: GetIsPrivatePathServiceGatewayEndpointGatewayBindingsOutputArgs, opts?: InvokeOptions): Output<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult>
    def get_is_private_path_service_gateway_endpoint_gateway_bindings(account: Optional[str] = None,
                                                                      id: Optional[str] = None,
                                                                      private_path_service_gateway: Optional[str] = None,
                                                                      status: Optional[str] = None,
                                                                      opts: Optional[InvokeOptions] = None) -> GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult
    def get_is_private_path_service_gateway_endpoint_gateway_bindings_output(account: Optional[pulumi.Input[str]] = None,
                                                                      id: Optional[pulumi.Input[str]] = None,
                                                                      private_path_service_gateway: Optional[pulumi.Input[str]] = None,
                                                                      status: Optional[pulumi.Input[str]] = None,
                                                                      opts: Optional[InvokeOptions] = None) -> Output[GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult]
    func GetIsPrivatePathServiceGatewayEndpointGatewayBindings(ctx *Context, args *GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs, opts ...InvokeOption) (*GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult, error)
    func GetIsPrivatePathServiceGatewayEndpointGatewayBindingsOutput(ctx *Context, args *GetIsPrivatePathServiceGatewayEndpointGatewayBindingsOutputArgs, opts ...InvokeOption) GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResultOutput

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

    public static class GetIsPrivatePathServiceGatewayEndpointGatewayBindings 
    {
        public static Task<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult> InvokeAsync(GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult> Invoke(GetIsPrivatePathServiceGatewayEndpointGatewayBindingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult> getIsPrivatePathServiceGatewayEndpointGatewayBindings(GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs args, InvokeOptions options)
    public static Output<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsResult> getIsPrivatePathServiceGatewayEndpointGatewayBindings(GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsPrivatePathServiceGatewayEndpointGatewayBindings:getIsPrivatePathServiceGatewayEndpointGatewayBindings
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PrivatePathServiceGateway string
    The private path service gateway identifier.
    Account string
    ID of the account to filter
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    Status string
    Status of the binding
    PrivatePathServiceGateway string
    The private path service gateway identifier.
    Account string
    ID of the account to filter
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    Status string
    Status of the binding
    privatePathServiceGateway String
    The private path service gateway identifier.
    account String
    ID of the account to filter
    id String
    (String) The unique identifier for this endpoint gateway binding.
    status String
    Status of the binding
    privatePathServiceGateway string
    The private path service gateway identifier.
    account string
    ID of the account to filter
    id string
    (String) The unique identifier for this endpoint gateway binding.
    status string
    Status of the binding
    private_path_service_gateway str
    The private path service gateway identifier.
    account str
    ID of the account to filter
    id str
    (String) The unique identifier for this endpoint gateway binding.
    status str
    Status of the binding
    privatePathServiceGateway String
    The private path service gateway identifier.
    account String
    ID of the account to filter
    id String
    (String) The unique identifier for this endpoint gateway binding.
    status String
    Status of the binding

    getIsPrivatePathServiceGatewayEndpointGatewayBindings Result

    The following output properties are available:

    EndpointGatewayBindings List<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBinding>
    (List) Collection of endpoint gateway bindings. Nested scheme for endpoint_gateway_bindings:
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    PrivatePathServiceGateway string
    Account string
    (List) The account that created the endpoint gateway. Nested scheme for account:
    Status string
    (String) The status of the endpoint gateway binding- denied: endpoint gateway binding was denied- expired: endpoint gateway binding has expired- pending: endpoint gateway binding is awaiting review- permitted: endpoint gateway binding was permittedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
    EndpointGatewayBindings []GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBinding
    (List) Collection of endpoint gateway bindings. Nested scheme for endpoint_gateway_bindings:
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    PrivatePathServiceGateway string
    Account string
    (List) The account that created the endpoint gateway. Nested scheme for account:
    Status string
    (String) The status of the endpoint gateway binding- denied: endpoint gateway binding was denied- expired: endpoint gateway binding has expired- pending: endpoint gateway binding is awaiting review- permitted: endpoint gateway binding was permittedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
    endpointGatewayBindings List<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBinding>
    (List) Collection of endpoint gateway bindings. Nested scheme for endpoint_gateway_bindings:
    id String
    (String) The unique identifier for this endpoint gateway binding.
    privatePathServiceGateway String
    account String
    (List) The account that created the endpoint gateway. Nested scheme for account:
    status String
    (String) The status of the endpoint gateway binding- denied: endpoint gateway binding was denied- expired: endpoint gateway binding has expired- pending: endpoint gateway binding is awaiting review- permitted: endpoint gateway binding was permittedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
    endpointGatewayBindings GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBinding[]
    (List) Collection of endpoint gateway bindings. Nested scheme for endpoint_gateway_bindings:
    id string
    (String) The unique identifier for this endpoint gateway binding.
    privatePathServiceGateway string
    account string
    (List) The account that created the endpoint gateway. Nested scheme for account:
    status string
    (String) The status of the endpoint gateway binding- denied: endpoint gateway binding was denied- expired: endpoint gateway binding has expired- pending: endpoint gateway binding is awaiting review- permitted: endpoint gateway binding was permittedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
    endpoint_gateway_bindings Sequence[GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBinding]
    (List) Collection of endpoint gateway bindings. Nested scheme for endpoint_gateway_bindings:
    id str
    (String) The unique identifier for this endpoint gateway binding.
    private_path_service_gateway str
    account str
    (List) The account that created the endpoint gateway. Nested scheme for account:
    status str
    (String) The status of the endpoint gateway binding- denied: endpoint gateway binding was denied- expired: endpoint gateway binding has expired- pending: endpoint gateway binding is awaiting review- permitted: endpoint gateway binding was permittedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
    endpointGatewayBindings List<Property Map>
    (List) Collection of endpoint gateway bindings. Nested scheme for endpoint_gateway_bindings:
    id String
    (String) The unique identifier for this endpoint gateway binding.
    privatePathServiceGateway String
    account String
    (List) The account that created the endpoint gateway. Nested scheme for account:
    status String
    (String) The status of the endpoint gateway binding- denied: endpoint gateway binding was denied- expired: endpoint gateway binding has expired- pending: endpoint gateway binding is awaiting review- permitted: endpoint gateway binding was permittedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.

    Supporting Types

    GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBinding

    Accounts List<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBindingAccount>
    ID of the account to filter
    CreatedAt string
    (String) The date and time that the endpoint gateway binding was created.
    ExpirationAt string
    (String) The expiration date and time for the endpoint gateway binding.
    Href string
    (String) The URL for this endpoint gateway binding.
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    LifecycleState string
    (String) The lifecycle state of the endpoint gateway binding.
    ResourceType string
    (String) The resource type.
    Status string
    Status of the binding
    UpdatedAt string
    (String) The date and time that the endpoint gateway binding was updated.
    Accounts []GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBindingAccount
    ID of the account to filter
    CreatedAt string
    (String) The date and time that the endpoint gateway binding was created.
    ExpirationAt string
    (String) The expiration date and time for the endpoint gateway binding.
    Href string
    (String) The URL for this endpoint gateway binding.
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    LifecycleState string
    (String) The lifecycle state of the endpoint gateway binding.
    ResourceType string
    (String) The resource type.
    Status string
    Status of the binding
    UpdatedAt string
    (String) The date and time that the endpoint gateway binding was updated.
    accounts List<GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBindingAccount>
    ID of the account to filter
    createdAt String
    (String) The date and time that the endpoint gateway binding was created.
    expirationAt String
    (String) The expiration date and time for the endpoint gateway binding.
    href String
    (String) The URL for this endpoint gateway binding.
    id String
    (String) The unique identifier for this endpoint gateway binding.
    lifecycleState String
    (String) The lifecycle state of the endpoint gateway binding.
    resourceType String
    (String) The resource type.
    status String
    Status of the binding
    updatedAt String
    (String) The date and time that the endpoint gateway binding was updated.
    accounts GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBindingAccount[]
    ID of the account to filter
    createdAt string
    (String) The date and time that the endpoint gateway binding was created.
    expirationAt string
    (String) The expiration date and time for the endpoint gateway binding.
    href string
    (String) The URL for this endpoint gateway binding.
    id string
    (String) The unique identifier for this endpoint gateway binding.
    lifecycleState string
    (String) The lifecycle state of the endpoint gateway binding.
    resourceType string
    (String) The resource type.
    status string
    Status of the binding
    updatedAt string
    (String) The date and time that the endpoint gateway binding was updated.
    accounts Sequence[GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBindingAccount]
    ID of the account to filter
    created_at str
    (String) The date and time that the endpoint gateway binding was created.
    expiration_at str
    (String) The expiration date and time for the endpoint gateway binding.
    href str
    (String) The URL for this endpoint gateway binding.
    id str
    (String) The unique identifier for this endpoint gateway binding.
    lifecycle_state str
    (String) The lifecycle state of the endpoint gateway binding.
    resource_type str
    (String) The resource type.
    status str
    Status of the binding
    updated_at str
    (String) The date and time that the endpoint gateway binding was updated.
    accounts List<Property Map>
    ID of the account to filter
    createdAt String
    (String) The date and time that the endpoint gateway binding was created.
    expirationAt String
    (String) The expiration date and time for the endpoint gateway binding.
    href String
    (String) The URL for this endpoint gateway binding.
    id String
    (String) The unique identifier for this endpoint gateway binding.
    lifecycleState String
    (String) The lifecycle state of the endpoint gateway binding.
    resourceType String
    (String) The resource type.
    status String
    Status of the binding
    updatedAt String
    (String) The date and time that the endpoint gateway binding was updated.

    GetIsPrivatePathServiceGatewayEndpointGatewayBindingsEndpointGatewayBindingAccount

    Id string
    (String) The unique identifier for this endpoint gateway binding.
    ResourceType string
    (String) The resource type.
    Id string
    (String) The unique identifier for this endpoint gateway binding.
    ResourceType string
    (String) The resource type.
    id String
    (String) The unique identifier for this endpoint gateway binding.
    resourceType String
    (String) The resource type.
    id string
    (String) The unique identifier for this endpoint gateway binding.
    resourceType string
    (String) The resource type.
    id str
    (String) The unique identifier for this endpoint gateway binding.
    resource_type str
    (String) The resource type.
    id String
    (String) The unique identifier for this endpoint gateway binding.
    resourceType String
    (String) The resource type.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud