ibm.getIsVirtualEndpointGateway
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
getIsVirtualEndpointGateway Result
The following output properties are available:
- List<string>
 - (List) Access management tags associated for the virtual endpoint gateway.
 - Allow
Dns boolResolution Binding  - (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 string - (Timestamp) The created date and time of the endpoint gateway.
 - Crn string
 - (String) The target CRN.
 - Health
State 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<Get
Is Virtual Endpoint Gateway Ip>  - (List) The unique identifier for the reserved IP.
 - Lifecycle
Reasons List<GetIs Virtual Endpoint Gateway Lifecycle Reason>  - Lifecycle
State string - (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
 - Name string
 - (String) The target name.
 - Resource
Group string - (String) The unique identifier for the resource group.
 - Resource
Type string - (String) The resource type of the subnet reserved IP.
 - Security
Groups List<string> - (List) - The security groups to use for this endpoint gateway.
 - Service
Endpoints List<string> - (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
 - List<string>
 - Targets
List<Get
Is Virtual Endpoint Gateway Target>  - (List) The endpoint gateway target.
 - Vpc string
 - (String) The VPC ID.
 
- []string
 - (List) Access management tags associated for the virtual endpoint gateway.
 - Allow
Dns boolResolution Binding  - (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 string - (Timestamp) The created date and time of the endpoint gateway.
 - Crn string
 - (String) The target CRN.
 - Health
State 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
[]Get
Is Virtual Endpoint Gateway Ip Type  - (List) The unique identifier for the reserved IP.
 - Lifecycle
Reasons []GetIs Virtual Endpoint Gateway Lifecycle Reason  - Lifecycle
State string - (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
 - Name string
 - (String) The target name.
 - Resource
Group string - (String) The unique identifier for the resource group.
 - Resource
Type string - (String) The resource type of the subnet reserved IP.
 - Security
Groups []string - (List) - The security groups to use for this endpoint gateway.
 - Service
Endpoints []string - (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
 - []string
 - Targets
[]Get
Is Virtual Endpoint Gateway Target  - (List) The endpoint gateway target.
 - Vpc string
 - (String) The VPC ID.
 
- List<String>
 - (List) Access management tags associated for the virtual endpoint gateway.
 - allow
Dns BooleanResolution Binding  - (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 String - (Timestamp) The created date and time of the endpoint gateway.
 - crn String
 - (String) The target CRN.
 - health
State 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<Get
Is Virtual Endpoint Gateway Ip>  - (List) The unique identifier for the reserved IP.
 - lifecycle
Reasons List<GetIs Virtual Endpoint Gateway Lifecycle Reason>  - lifecycle
State String - (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
 - name String
 - (String) The target name.
 - resource
Group String - (String) The unique identifier for the resource group.
 - resource
Type String - (String) The resource type of the subnet reserved IP.
 - security
Groups List<String> - (List) - The security groups to use for this endpoint gateway.
 - service
Endpoints List<String> - (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
 - List<String>
 - targets
List<Get
Is Virtual Endpoint Gateway Target>  - (List) The endpoint gateway target.
 - vpc String
 - (String) The VPC ID.
 
- string[]
 - (List) Access management tags associated for the virtual endpoint gateway.
 - allow
Dns booleanResolution Binding  - (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 string - (Timestamp) The created date and time of the endpoint gateway.
 - crn string
 - (String) The target CRN.
 - health
State 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
Get
Is Virtual Endpoint Gateway Ip[]  - (List) The unique identifier for the reserved IP.
 - lifecycle
Reasons GetIs Virtual Endpoint Gateway Lifecycle Reason[]  - lifecycle
State string - (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
 - name string
 - (String) The target name.
 - resource
Group string - (String) The unique identifier for the resource group.
 - resource
Type string - (String) The resource type of the subnet reserved IP.
 - security
Groups string[] - (List) - The security groups to use for this endpoint gateway.
 - service
Endpoints string[] - (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
 - string[]
 - targets
Get
Is Virtual Endpoint Gateway Target[]  - (List) The endpoint gateway target.
 - vpc string
 - (String) The VPC ID.
 
- Sequence[str]
 - (List) Access management tags associated for the virtual endpoint gateway.
 - allow_
dns_ boolresolution_ binding  - (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[Get
Is Virtual Endpoint Gateway Ip]  - (List) The unique identifier for the reserved IP.
 - lifecycle_
reasons Sequence[GetIs Virtual Endpoint Gateway Lifecycle Reason]  - 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
 - Sequence[str]
 - targets
Sequence[Get
Is Virtual Endpoint Gateway Target]  - (List) The endpoint gateway target.
 - vpc str
 - (String) The VPC ID.
 
- List<String>
 - (List) Access management tags associated for the virtual endpoint gateway.
 - allow
Dns BooleanResolution Binding  - (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 String - (Timestamp) The created date and time of the endpoint gateway.
 - crn String
 - (String) The target CRN.
 - health
State 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.
 - lifecycle
Reasons List<Property Map> - lifecycle
State String - (String) The endpoint gateway lifecycle state, supported values are deleted, deleting, failed, pending, stable, updating, waiting, suspended.
 - name String
 - (String) The target name.
 - resource
Group String - (String) The unique identifier for the resource group.
 - resource
Type String - (String) The resource type of the subnet reserved IP.
 - security
Groups List<String> - (List) - The security groups to use for this endpoint gateway.
 - service
Endpoints List<String> - (Array of Strings) The fully qualified domain names for the target service. A fully qualified domain name for the target service
 - 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.
 - Resource
Type 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.
 - Resource
Type 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.
 - resource
Type 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.
 - resource
Type 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.
 - resource
Type String - (String) The resource type of the subnet reserved IP.
 
GetIsVirtualEndpointGatewayLifecycleReason      
GetIsVirtualEndpointGatewayTarget     
- Crn string
 - (String) The target CRN.
 - Name string
 - The endpoint gateway name.
 - Resource
Type string - (String) The resource type of the subnet reserved IP.
 
- Crn string
 - (String) The target CRN.
 - Name string
 - The endpoint gateway name.
 - Resource
Type string - (String) The resource type of the subnet reserved IP.
 
- crn String
 - (String) The target CRN.
 - name String
 - The endpoint gateway name.
 - resource
Type String - (String) The resource type of the subnet reserved IP.
 
- crn string
 - (String) The target CRN.
 - name string
 - The endpoint gateway name.
 - resource
Type 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.
 - resource
Type 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 
ibmTerraform Provider.