1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dms
  5. getEnterpriseProxies
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.dms.getEnterpriseProxies

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    This data source provides the Dms Enterprise Proxies of the current Alibaba Cloud user.

    NOTE: Available in v1.188.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.dms.getEnterpriseProxies({});
    export const dmsEnterpriseProxyId1 = ids.then(ids => ids.proxies?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.dms.get_enterprise_proxies()
    pulumi.export("dmsEnterpriseProxyId1", ids.proxies[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := dms.GetEnterpriseProxies(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("dmsEnterpriseProxyId1", ids.Proxies[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Dms.GetEnterpriseProxies.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["dmsEnterpriseProxyId1"] = ids.Apply(getEnterpriseProxiesResult => getEnterpriseProxiesResult.Proxies[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.dms.DmsFunctions;
    import com.pulumi.alicloud.dms.inputs.GetEnterpriseProxiesArgs;
    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 ids = DmsFunctions.getEnterpriseProxies();
    
            ctx.export("dmsEnterpriseProxyId1", ids.applyValue(getEnterpriseProxiesResult -> getEnterpriseProxiesResult.proxies()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:dms:getEnterpriseProxies
          Arguments: {}
    outputs:
      dmsEnterpriseProxyId1: ${ids.proxies[0].id}
    

    Using getEnterpriseProxies

    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 getEnterpriseProxies(args: GetEnterpriseProxiesArgs, opts?: InvokeOptions): Promise<GetEnterpriseProxiesResult>
    function getEnterpriseProxiesOutput(args: GetEnterpriseProxiesOutputArgs, opts?: InvokeOptions): Output<GetEnterpriseProxiesResult>
    def get_enterprise_proxies(ids: Optional[Sequence[str]] = None,
                               output_file: Optional[str] = None,
                               tid: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetEnterpriseProxiesResult
    def get_enterprise_proxies_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               output_file: Optional[pulumi.Input[str]] = None,
                               tid: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseProxiesResult]
    func GetEnterpriseProxies(ctx *Context, args *GetEnterpriseProxiesArgs, opts ...InvokeOption) (*GetEnterpriseProxiesResult, error)
    func GetEnterpriseProxiesOutput(ctx *Context, args *GetEnterpriseProxiesOutputArgs, opts ...InvokeOption) GetEnterpriseProxiesResultOutput

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

    public static class GetEnterpriseProxies 
    {
        public static Task<GetEnterpriseProxiesResult> InvokeAsync(GetEnterpriseProxiesArgs args, InvokeOptions? opts = null)
        public static Output<GetEnterpriseProxiesResult> Invoke(GetEnterpriseProxiesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnterpriseProxiesResult> getEnterpriseProxies(GetEnterpriseProxiesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:dms/getEnterpriseProxies:getEnterpriseProxies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Proxy IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Tid string
    The ID of the tenant.
    Ids []string
    A list of Proxy IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Tid string
    The ID of the tenant.
    ids List<String>
    A list of Proxy IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    tid String
    The ID of the tenant.
    ids string[]
    A list of Proxy IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    tid string
    The ID of the tenant.
    ids Sequence[str]
    A list of Proxy IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    tid str
    The ID of the tenant.
    ids List<String>
    A list of Proxy IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    tid String
    The ID of the tenant.

    getEnterpriseProxies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Proxies List<Pulumi.AliCloud.Dms.Outputs.GetEnterpriseProxiesProxy>
    OutputFile string
    Tid string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Proxies []GetEnterpriseProxiesProxy
    OutputFile string
    Tid string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    proxies List<GetEnterpriseProxiesProxy>
    outputFile String
    tid String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    proxies GetEnterpriseProxiesProxy[]
    outputFile string
    tid string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    proxies Sequence[GetEnterpriseProxiesProxy]
    output_file str
    tid str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    proxies List<Property Map>
    outputFile String
    tid String

    Supporting Types

    GetEnterpriseProxiesProxy

    CreatorId string
    The ID of the user who enabled the secure access proxy feature.
    CreatorName string
    The nickname of the user who enabled the secure access proxy feature.
    HttpsPort int
    The port that was used by HTTPS clients to connect to the database instance.
    Id string
    The ID of the Proxy.
    InstanceId string
    The ID of the database instance.
    PrivateEnable bool
    Indicates whether the internal endpoint is enabled. Default value: true.
    PrivateHost string
    The internal endpoint.
    ProtocolPort int
    Database protocol connection port number.
    ProtocolType string
    Database protocol type, for example, MYSQL.
    ProxyId string
    The ID of the secure access proxy.
    PublicEnable bool
    Indicates whether the public endpoint is enabled.
    PublicHost string
    The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. Note: When the public network address is in the true state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the false state, the returned Public address is an invalid address without DNS resolution.
    CreatorId string
    The ID of the user who enabled the secure access proxy feature.
    CreatorName string
    The nickname of the user who enabled the secure access proxy feature.
    HttpsPort int
    The port that was used by HTTPS clients to connect to the database instance.
    Id string
    The ID of the Proxy.
    InstanceId string
    The ID of the database instance.
    PrivateEnable bool
    Indicates whether the internal endpoint is enabled. Default value: true.
    PrivateHost string
    The internal endpoint.
    ProtocolPort int
    Database protocol connection port number.
    ProtocolType string
    Database protocol type, for example, MYSQL.
    ProxyId string
    The ID of the secure access proxy.
    PublicEnable bool
    Indicates whether the public endpoint is enabled.
    PublicHost string
    The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. Note: When the public network address is in the true state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the false state, the returned Public address is an invalid address without DNS resolution.
    creatorId String
    The ID of the user who enabled the secure access proxy feature.
    creatorName String
    The nickname of the user who enabled the secure access proxy feature.
    httpsPort Integer
    The port that was used by HTTPS clients to connect to the database instance.
    id String
    The ID of the Proxy.
    instanceId String
    The ID of the database instance.
    privateEnable Boolean
    Indicates whether the internal endpoint is enabled. Default value: true.
    privateHost String
    The internal endpoint.
    protocolPort Integer
    Database protocol connection port number.
    protocolType String
    Database protocol type, for example, MYSQL.
    proxyId String
    The ID of the secure access proxy.
    publicEnable Boolean
    Indicates whether the public endpoint is enabled.
    publicHost String
    The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. Note: When the public network address is in the true state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the false state, the returned Public address is an invalid address without DNS resolution.
    creatorId string
    The ID of the user who enabled the secure access proxy feature.
    creatorName string
    The nickname of the user who enabled the secure access proxy feature.
    httpsPort number
    The port that was used by HTTPS clients to connect to the database instance.
    id string
    The ID of the Proxy.
    instanceId string
    The ID of the database instance.
    privateEnable boolean
    Indicates whether the internal endpoint is enabled. Default value: true.
    privateHost string
    The internal endpoint.
    protocolPort number
    Database protocol connection port number.
    protocolType string
    Database protocol type, for example, MYSQL.
    proxyId string
    The ID of the secure access proxy.
    publicEnable boolean
    Indicates whether the public endpoint is enabled.
    publicHost string
    The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. Note: When the public network address is in the true state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the false state, the returned Public address is an invalid address without DNS resolution.
    creator_id str
    The ID of the user who enabled the secure access proxy feature.
    creator_name str
    The nickname of the user who enabled the secure access proxy feature.
    https_port int
    The port that was used by HTTPS clients to connect to the database instance.
    id str
    The ID of the Proxy.
    instance_id str
    The ID of the database instance.
    private_enable bool
    Indicates whether the internal endpoint is enabled. Default value: true.
    private_host str
    The internal endpoint.
    protocol_port int
    Database protocol connection port number.
    protocol_type str
    Database protocol type, for example, MYSQL.
    proxy_id str
    The ID of the secure access proxy.
    public_enable bool
    Indicates whether the public endpoint is enabled.
    public_host str
    The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. Note: When the public network address is in the true state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the false state, the returned Public address is an invalid address without DNS resolution.
    creatorId String
    The ID of the user who enabled the secure access proxy feature.
    creatorName String
    The nickname of the user who enabled the secure access proxy feature.
    httpsPort Number
    The port that was used by HTTPS clients to connect to the database instance.
    id String
    The ID of the Proxy.
    instanceId String
    The ID of the database instance.
    privateEnable Boolean
    Indicates whether the internal endpoint is enabled. Default value: true.
    privateHost String
    The internal endpoint.
    protocolPort Number
    Database protocol connection port number.
    protocolType String
    Database protocol type, for example, MYSQL.
    proxyId String
    The ID of the secure access proxy.
    publicEnable Boolean
    Indicates whether the public endpoint is enabled.
    publicHost String
    The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. Note: When the public network address is in the true state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the false state, the returned Public address is an invalid address without DNS resolution.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi