Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.dms.getEnterpriseProxies
Explore with Pulumi AI
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.
- Output
File 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.
- Output
File 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.
- output
File 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.
- output
File 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.
- output
File 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.
Ali Cloud. Dms. Outputs. Get Enterprise Proxies Proxy> - Output
File string - Tid string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Proxies
[]Get
Enterprise Proxies Proxy - Output
File string - Tid string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- proxies
List<Get
Enterprise Proxies Proxy> - output
File String - tid String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- proxies
Get
Enterprise Proxies Proxy[] - output
File string - tid string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- proxies
Sequence[Get
Enterprise Proxies Proxy] - output_
file str - tid str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- proxies List<Property Map>
- output
File String - tid String
Supporting Types
GetEnterpriseProxiesProxy
- Creator
Id string - The ID of the user who enabled the secure access proxy feature.
- Creator
Name string - 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 string
- The ID of the Proxy.
- Instance
Id string - The ID of the database instance.
- Private
Enable bool - Indicates whether the internal endpoint is enabled. Default value: true.
- Private
Host string - The internal endpoint.
- Protocol
Port int - Database protocol connection port number.
- Protocol
Type string - Database protocol type, for example, MYSQL.
- Proxy
Id string - The ID of the secure access proxy.
- Public
Enable bool - Indicates whether the public endpoint is enabled.
- Public
Host 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 string - The ID of the user who enabled the secure access proxy feature.
- Creator
Name string - 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 string
- The ID of the Proxy.
- Instance
Id string - The ID of the database instance.
- Private
Enable bool - Indicates whether the internal endpoint is enabled. Default value: true.
- Private
Host string - The internal endpoint.
- Protocol
Port int - Database protocol connection port number.
- Protocol
Type string - Database protocol type, for example, MYSQL.
- Proxy
Id string - The ID of the secure access proxy.
- Public
Enable bool - Indicates whether the public endpoint is enabled.
- Public
Host 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 String - The ID of the user who enabled the secure access proxy feature.
- creator
Name String - The nickname of the user who enabled the secure access proxy feature.
- https
Port Integer - The port that was used by HTTPS clients to connect to the database instance.
- id String
- The ID of the Proxy.
- instance
Id String - The ID of the database instance.
- private
Enable Boolean - Indicates whether the internal endpoint is enabled. Default value: true.
- private
Host String - The internal endpoint.
- protocol
Port Integer - Database protocol connection port number.
- protocol
Type String - Database protocol type, for example, MYSQL.
- proxy
Id String - The ID of the secure access proxy.
- public
Enable Boolean - Indicates whether the public endpoint is enabled.
- public
Host 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 string - The ID of the user who enabled the secure access proxy feature.
- creator
Name string - The nickname of the user who enabled the secure access proxy feature.
- https
Port number - The port that was used by HTTPS clients to connect to the database instance.
- id string
- The ID of the Proxy.
- instance
Id string - The ID of the database instance.
- private
Enable boolean - Indicates whether the internal endpoint is enabled. Default value: true.
- private
Host string - The internal endpoint.
- protocol
Port number - Database protocol connection port number.
- protocol
Type string - Database protocol type, for example, MYSQL.
- proxy
Id string - The ID of the secure access proxy.
- public
Enable boolean - Indicates whether the public endpoint is enabled.
- public
Host 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.
- creator
Id String - The ID of the user who enabled the secure access proxy feature.
- creator
Name String - The nickname of the user who enabled the secure access proxy feature.
- https
Port Number - The port that was used by HTTPS clients to connect to the database instance.
- id String
- The ID of the Proxy.
- instance
Id String - The ID of the database instance.
- private
Enable Boolean - Indicates whether the internal endpoint is enabled. Default value: true.
- private
Host String - The internal endpoint.
- protocol
Port Number - Database protocol connection port number.
- protocol
Type String - Database protocol type, for example, MYSQL.
- proxy
Id String - The ID of the secure access proxy.
- public
Enable Boolean - Indicates whether the public endpoint is enabled.
- public
Host 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.