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

ibm.getIsVirtualEndpointGateway

Explore with Pulumi AI

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

    Retrieve information of an existing IBM Cloud Infrastructure virtual endpoint gateway as a read-only data source. For more information, about the VPC endpoint gateway, see creating an endpoint gateway.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsVirtualEndpointGateway({
        name: ibm_is_virtual_endpoint_gateway.example.name,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_virtual_endpoint_gateway(name=ibm_is_virtual_endpoint_gateway["example"]["name"])
    
    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 {
    		_, err := ibm.LookupIsVirtualEndpointGateway(ctx, &ibm.LookupIsVirtualEndpointGatewayArgs{
    			Name: ibm_is_virtual_endpoint_gateway.Example.Name,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ibm.GetIsVirtualEndpointGateway.Invoke(new()
        {
            Name = ibm_is_virtual_endpoint_gateway.Example.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIsVirtualEndpointGatewayArgs;
    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) {
            final var example = IbmFunctions.getIsVirtualEndpointGateway(GetIsVirtualEndpointGatewayArgs.builder()
                .name(ibm_is_virtual_endpoint_gateway.example().name())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsVirtualEndpointGateway
          arguments:
            name: ${ibm_is_virtual_endpoint_gateway.example.name}
    

    Using getIsVirtualEndpointGateway

    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 getIsVirtualEndpointGateway(args: GetIsVirtualEndpointGatewayArgs, opts?: InvokeOptions): Promise<GetIsVirtualEndpointGatewayResult>
    function getIsVirtualEndpointGatewayOutput(args: GetIsVirtualEndpointGatewayOutputArgs, opts?: InvokeOptions): Output<GetIsVirtualEndpointGatewayResult>
    def get_is_virtual_endpoint_gateway(id: Optional[str] = None,
                                        name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetIsVirtualEndpointGatewayResult
    def get_is_virtual_endpoint_gateway_output(id: Optional[pulumi.Input[str]] = None,
                                        name: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetIsVirtualEndpointGatewayResult]
    func LookupIsVirtualEndpointGateway(ctx *Context, args *LookupIsVirtualEndpointGatewayArgs, opts ...InvokeOption) (*LookupIsVirtualEndpointGatewayResult, error)
    func LookupIsVirtualEndpointGatewayOutput(ctx *Context, args *LookupIsVirtualEndpointGatewayOutputArgs, opts ...InvokeOption) LookupIsVirtualEndpointGatewayResultOutput

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

    public static class GetIsVirtualEndpointGateway 
    {
        public static Task<GetIsVirtualEndpointGatewayResult> InvokeAsync(GetIsVirtualEndpointGatewayArgs args, InvokeOptions? opts = null)
        public static Output<GetIsVirtualEndpointGatewayResult> Invoke(GetIsVirtualEndpointGatewayInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsVirtualEndpointGatewayResult> getIsVirtualEndpointGateway(GetIsVirtualEndpointGatewayArgs args, InvokeOptions options)
    public static Output<GetIsVirtualEndpointGatewayResult> getIsVirtualEndpointGateway(GetIsVirtualEndpointGatewayArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsVirtualEndpointGateway:getIsVirtualEndpointGateway
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The endpoint gateway name.
    Id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    Name string
    The endpoint gateway name.
    Id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name String
    The endpoint gateway name.
    id String
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name string
    The endpoint gateway name.
    id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name str
    The endpoint gateway name.
    id str
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name String
    The endpoint gateway name.
    id String
    (String) The collection of reserved IPs bound to an endpoint gateway.

    getIsVirtualEndpointGateway Result

    The following output properties are available:

    AccessTags List<string>
    (List) Access management tags associated for the virtual endpoint gateway.
    AllowDnsResolutionBinding bool
    (Bool) Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.
    CreatedAt string
    (Timestamp) The created date and time of the endpoint gateway.
    Crn string
    (String) The target CRN.
    HealthState string
    (String) Endpoint gateway health state. ok: Healthy, degraded: Suffering from compromised performance, capacity, or connectivity, faulted: Completely unreachable, inoperative, or entirely incapacitated, inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
    Id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    Ips List<GetIsVirtualEndpointGatewayIp>
    (List) The unique identifier for the reserved IP.
    LifecycleReasons List<GetIsVirtualEndpointGatewayLifecycleReason>
    LifecycleState string
    (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
    Name string
    (String) The target name.
    ResourceGroup string
    (String) The unique identifier for the resource group.
    ResourceType string
    (String) The resource type of the subnet reserved IP.
    SecurityGroups List<string>
    (List) - The security groups to use for this endpoint gateway.
    ServiceEndpoints List<string>
    (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
    Tags List<string>
    Targets List<GetIsVirtualEndpointGatewayTarget>
    (List) The endpoint gateway target.
    Vpc string
    (String) The VPC ID.
    AccessTags []string
    (List) Access management tags associated for the virtual endpoint gateway.
    AllowDnsResolutionBinding bool
    (Bool) Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.
    CreatedAt string
    (Timestamp) The created date and time of the endpoint gateway.
    Crn string
    (String) The target CRN.
    HealthState string
    (String) Endpoint gateway health state. ok: Healthy, degraded: Suffering from compromised performance, capacity, or connectivity, faulted: Completely unreachable, inoperative, or entirely incapacitated, inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
    Id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    Ips []GetIsVirtualEndpointGatewayIpType
    (List) The unique identifier for the reserved IP.
    LifecycleReasons []GetIsVirtualEndpointGatewayLifecycleReason
    LifecycleState string
    (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
    Name string
    (String) The target name.
    ResourceGroup string
    (String) The unique identifier for the resource group.
    ResourceType string
    (String) The resource type of the subnet reserved IP.
    SecurityGroups []string
    (List) - The security groups to use for this endpoint gateway.
    ServiceEndpoints []string
    (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
    Tags []string
    Targets []GetIsVirtualEndpointGatewayTarget
    (List) The endpoint gateway target.
    Vpc string
    (String) The VPC ID.
    accessTags List<String>
    (List) Access management tags associated for the virtual endpoint gateway.
    allowDnsResolutionBinding Boolean
    (Bool) Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.
    createdAt String
    (Timestamp) The created date and time of the endpoint gateway.
    crn String
    (String) The target CRN.
    healthState String
    (String) Endpoint gateway health state. ok: Healthy, degraded: Suffering from compromised performance, capacity, or connectivity, faulted: Completely unreachable, inoperative, or entirely incapacitated, inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
    id String
    (String) The collection of reserved IPs bound to an endpoint gateway.
    ips List<GetIsVirtualEndpointGatewayIp>
    (List) The unique identifier for the reserved IP.
    lifecycleReasons List<GetIsVirtualEndpointGatewayLifecycleReason>
    lifecycleState String
    (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
    name String
    (String) The target name.
    resourceGroup String
    (String) The unique identifier for the resource group.
    resourceType String
    (String) The resource type of the subnet reserved IP.
    securityGroups List<String>
    (List) - The security groups to use for this endpoint gateway.
    serviceEndpoints List<String>
    (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
    tags List<String>
    targets List<GetIsVirtualEndpointGatewayTarget>
    (List) The endpoint gateway target.
    vpc String
    (String) The VPC ID.
    accessTags string[]
    (List) Access management tags associated for the virtual endpoint gateway.
    allowDnsResolutionBinding boolean
    (Bool) Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.
    createdAt string
    (Timestamp) The created date and time of the endpoint gateway.
    crn string
    (String) The target CRN.
    healthState string
    (String) Endpoint gateway health state. ok: Healthy, degraded: Suffering from compromised performance, capacity, or connectivity, faulted: Completely unreachable, inoperative, or entirely incapacitated, inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
    id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    ips GetIsVirtualEndpointGatewayIp[]
    (List) The unique identifier for the reserved IP.
    lifecycleReasons GetIsVirtualEndpointGatewayLifecycleReason[]
    lifecycleState string
    (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
    name string
    (String) The target name.
    resourceGroup string
    (String) The unique identifier for the resource group.
    resourceType string
    (String) The resource type of the subnet reserved IP.
    securityGroups string[]
    (List) - The security groups to use for this endpoint gateway.
    serviceEndpoints string[]
    (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
    tags string[]
    targets GetIsVirtualEndpointGatewayTarget[]
    (List) The endpoint gateway target.
    vpc string
    (String) The VPC ID.
    access_tags Sequence[str]
    (List) Access management tags associated for the virtual endpoint gateway.
    allow_dns_resolution_binding bool
    (Bool) Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.
    created_at str
    (Timestamp) The created date and time of the endpoint gateway.
    crn str
    (String) The target CRN.
    health_state str
    (String) Endpoint gateway health state. ok: Healthy, degraded: Suffering from compromised performance, capacity, or connectivity, faulted: Completely unreachable, inoperative, or entirely incapacitated, inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
    id str
    (String) The collection of reserved IPs bound to an endpoint gateway.
    ips Sequence[GetIsVirtualEndpointGatewayIp]
    (List) The unique identifier for the reserved IP.
    lifecycle_reasons Sequence[GetIsVirtualEndpointGatewayLifecycleReason]
    lifecycle_state str
    (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
    name str
    (String) The target name.
    resource_group str
    (String) The unique identifier for the resource group.
    resource_type str
    (String) The resource type of the subnet reserved IP.
    security_groups Sequence[str]
    (List) - The security groups to use for this endpoint gateway.
    service_endpoints Sequence[str]
    (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
    tags Sequence[str]
    targets Sequence[GetIsVirtualEndpointGatewayTarget]
    (List) The endpoint gateway target.
    vpc str
    (String) The VPC ID.
    accessTags List<String>
    (List) Access management tags associated for the virtual endpoint gateway.
    allowDnsResolutionBinding Boolean
    (Bool) Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true.
    createdAt String
    (Timestamp) The created date and time of the endpoint gateway.
    crn String
    (String) The target CRN.
    healthState String
    (String) Endpoint gateway health state. ok: Healthy, degraded: Suffering from compromised performance, capacity, or connectivity, faulted: Completely unreachable, inoperative, or entirely incapacitated, inapplicable: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of failed or deleting will have a health state of inapplicable. A pending resource may have this state.
    id String
    (String) The collection of reserved IPs bound to an endpoint gateway.
    ips List<Property Map>
    (List) The unique identifier for the reserved IP.
    lifecycleReasons List<Property Map>
    lifecycleState String
    (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
    name String
    (String) The target name.
    resourceGroup String
    (String) The unique identifier for the resource group.
    resourceType String
    (String) The resource type of the subnet reserved IP.
    securityGroups List<String>
    (List) - The security groups to use for this endpoint gateway.
    serviceEndpoints List<String>
    (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
    tags List<String>
    targets List<Property Map>
    (List) The endpoint gateway target.
    vpc String
    (String) The VPC ID.

    Supporting Types

    GetIsVirtualEndpointGatewayIp

    Address string
    (String) The endpoint gateway IP Address.
    Id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    Name string
    The endpoint gateway name.
    ResourceType string
    (String) The resource type of the subnet reserved IP.
    Address string
    (String) The endpoint gateway IP Address.
    Id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    Name string
    The endpoint gateway name.
    ResourceType string
    (String) The resource type of the subnet reserved IP.
    address String
    (String) The endpoint gateway IP Address.
    id String
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name String
    The endpoint gateway name.
    resourceType String
    (String) The resource type of the subnet reserved IP.
    address string
    (String) The endpoint gateway IP Address.
    id string
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name string
    The endpoint gateway name.
    resourceType string
    (String) The resource type of the subnet reserved IP.
    address str
    (String) The endpoint gateway IP Address.
    id str
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name str
    The endpoint gateway name.
    resource_type str
    (String) The resource type of the subnet reserved IP.
    address String
    (String) The endpoint gateway IP Address.
    id String
    (String) The collection of reserved IPs bound to an endpoint gateway.
    name String
    The endpoint gateway name.
    resourceType String
    (String) The resource type of the subnet reserved IP.

    GetIsVirtualEndpointGatewayLifecycleReason

    Code string
    Message string
    MoreInfo string
    Code string
    Message string
    MoreInfo string
    code String
    message String
    moreInfo String
    code string
    message string
    moreInfo string
    code String
    message String
    moreInfo String

    GetIsVirtualEndpointGatewayTarget

    Crn string
    (String) The target CRN.
    Name string
    The endpoint gateway name.
    ResourceType string
    (String) The resource type of the subnet reserved IP.
    Crn string
    (String) The target CRN.
    Name string
    The endpoint gateway name.
    ResourceType string
    (String) The resource type of the subnet reserved IP.
    crn String
    (String) The target CRN.
    name String
    The endpoint gateway name.
    resourceType String
    (String) The resource type of the subnet reserved IP.
    crn string
    (String) The target CRN.
    name string
    The endpoint gateway name.
    resourceType string
    (String) The resource type of the subnet reserved IP.
    crn str
    (String) The target CRN.
    name str
    The endpoint gateway name.
    resource_type str
    (String) The resource type of the subnet reserved IP.
    crn String
    (String) The target CRN.
    name String
    The endpoint gateway name.
    resourceType String
    (String) The resource type of the subnet reserved IP.

    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