1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dms
  5. getEnterpriseProxies
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.dms.getEnterpriseProxies

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.dms.get_enterprise_proxies()
pulumi.export("dmsEnterpriseProxyId1", ids.proxies[0].id)
Copy
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, &dms.GetEnterpriseProxiesArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dmsEnterpriseProxyId1", ids.Proxies[0].Id)
		return nil
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:dms:getEnterpriseProxies
      arguments: {}
outputs:
  dmsEnterpriseProxyId1: ${ids.proxies[0].id}
Copy

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>
Copy
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]
Copy
func GetEnterpriseProxies(ctx *Context, args *GetEnterpriseProxiesArgs, opts ...InvokeOption) (*GetEnterpriseProxiesResult, error)
func GetEnterpriseProxiesOutput(ctx *Context, args *GetEnterpriseProxiesOutputArgs, opts ...InvokeOption) GetEnterpriseProxiesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEnterpriseProxiesResult> getEnterpriseProxies(GetEnterpriseProxiesArgs args, InvokeOptions options)
public static Output<GetEnterpriseProxiesResult> getEnterpriseProxies(GetEnterpriseProxiesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:dms/getEnterpriseProxies:getEnterpriseProxies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of Proxy IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Tid Changes to this property will trigger replacement. string
The ID of the tenant.
Ids Changes to this property will trigger replacement. []string
A list of Proxy IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Tid Changes to this property will trigger replacement. string
The ID of the tenant.
ids Changes to this property will trigger replacement. List<String>
A list of Proxy IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
tid Changes to this property will trigger replacement. String
The ID of the tenant.
ids Changes to this property will trigger replacement. string[]
A list of Proxy IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
tid Changes to this property will trigger replacement. string
The ID of the tenant.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Proxy IDs.
output_file str
File name where to save data source results (after running pulumi preview).
tid Changes to this property will trigger replacement. str
The ID of the tenant.
ids Changes to this property will trigger replacement. List<String>
A list of Proxy IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
tid Changes to this property will trigger replacement. 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 This property is required. string
The ID of the user who enabled the secure access proxy feature.
CreatorName This property is required. string
The nickname of the user who enabled the secure access proxy feature.
HttpsPort This property is required. int
The port that was used by HTTPS clients to connect to the database instance.
Id This property is required. string
The ID of the Proxy.
InstanceId This property is required. string
The ID of the database instance.
PrivateEnable This property is required. bool
Indicates whether the internal endpoint is enabled. Default value: true.
PrivateHost This property is required. string
The internal endpoint.
ProtocolPort This property is required. int
Database protocol connection port number.
ProtocolType This property is required. string
Database protocol type, for example, MYSQL.
ProxyId This property is required. string
The ID of the secure access proxy.
PublicEnable This property is required. bool
Indicates whether the public endpoint is enabled.
PublicHost This property is required. 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 This property is required. string
The ID of the user who enabled the secure access proxy feature.
CreatorName This property is required. string
The nickname of the user who enabled the secure access proxy feature.
HttpsPort This property is required. int
The port that was used by HTTPS clients to connect to the database instance.
Id This property is required. string
The ID of the Proxy.
InstanceId This property is required. string
The ID of the database instance.
PrivateEnable This property is required. bool
Indicates whether the internal endpoint is enabled. Default value: true.
PrivateHost This property is required. string
The internal endpoint.
ProtocolPort This property is required. int
Database protocol connection port number.
ProtocolType This property is required. string
Database protocol type, for example, MYSQL.
ProxyId This property is required. string
The ID of the secure access proxy.
PublicEnable This property is required. bool
Indicates whether the public endpoint is enabled.
PublicHost This property is required. 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 This property is required. String
The ID of the user who enabled the secure access proxy feature.
creatorName This property is required. String
The nickname of the user who enabled the secure access proxy feature.
httpsPort This property is required. Integer
The port that was used by HTTPS clients to connect to the database instance.
id This property is required. String
The ID of the Proxy.
instanceId This property is required. String
The ID of the database instance.
privateEnable This property is required. Boolean
Indicates whether the internal endpoint is enabled. Default value: true.
privateHost This property is required. String
The internal endpoint.
protocolPort This property is required. Integer
Database protocol connection port number.
protocolType This property is required. String
Database protocol type, for example, MYSQL.
proxyId This property is required. String
The ID of the secure access proxy.
publicEnable This property is required. Boolean
Indicates whether the public endpoint is enabled.
publicHost This property is required. 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 This property is required. string
The ID of the user who enabled the secure access proxy feature.
creatorName This property is required. string
The nickname of the user who enabled the secure access proxy feature.
httpsPort This property is required. number
The port that was used by HTTPS clients to connect to the database instance.
id This property is required. string
The ID of the Proxy.
instanceId This property is required. string
The ID of the database instance.
privateEnable This property is required. boolean
Indicates whether the internal endpoint is enabled. Default value: true.
privateHost This property is required. string
The internal endpoint.
protocolPort This property is required. number
Database protocol connection port number.
protocolType This property is required. string
Database protocol type, for example, MYSQL.
proxyId This property is required. string
The ID of the secure access proxy.
publicEnable This property is required. boolean
Indicates whether the public endpoint is enabled.
publicHost This property is required. 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 This property is required. str
The ID of the user who enabled the secure access proxy feature.
creator_name This property is required. str
The nickname of the user who enabled the secure access proxy feature.
https_port This property is required. int
The port that was used by HTTPS clients to connect to the database instance.
id This property is required. str
The ID of the Proxy.
instance_id This property is required. str
The ID of the database instance.
private_enable This property is required. bool
Indicates whether the internal endpoint is enabled. Default value: true.
private_host This property is required. str
The internal endpoint.
protocol_port This property is required. int
Database protocol connection port number.
protocol_type This property is required. str
Database protocol type, for example, MYSQL.
proxy_id This property is required. str
The ID of the secure access proxy.
public_enable This property is required. bool
Indicates whether the public endpoint is enabled.
public_host This property is required. 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 This property is required. String
The ID of the user who enabled the secure access proxy feature.
creatorName This property is required. String
The nickname of the user who enabled the secure access proxy feature.
httpsPort This property is required. Number
The port that was used by HTTPS clients to connect to the database instance.
id This property is required. String
The ID of the Proxy.
instanceId This property is required. String
The ID of the database instance.
privateEnable This property is required. Boolean
Indicates whether the internal endpoint is enabled. Default value: true.
privateHost This property is required. String
The internal endpoint.
protocolPort This property is required. Number
Database protocol connection port number.
protocolType This property is required. String
Database protocol type, for example, MYSQL.
proxyId This property is required. String
The ID of the secure access proxy.
publicEnable This property is required. Boolean
Indicates whether the public endpoint is enabled.
publicHost This property is required. 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.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi