Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.dms.getEnterpriseProxyAccesses
Explore with Pulumi AI
This data source provides DMS Enterprise Proxy Access available to the user.What is Proxy Access
NOTE: Available since v1.195.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultEnterpriseProxyAccess = new alicloud.dms.EnterpriseProxyAccess("default", {
indepPassword: "PASSWORD-DEMO",
proxyId: "1881",
indepAccount: "dmstest",
userId: "104442",
});
const default = alicloud.dms.getEnterpriseProxyAccessesOutput({
ids: [defaultEnterpriseProxyAccess.id],
proxyId: "1881",
});
export const alicloudDmsProxyAccesesExampleId = _default.apply(_default => _default.accesses?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default_enterprise_proxy_access = alicloud.dms.EnterpriseProxyAccess("default",
indep_password="PASSWORD-DEMO",
proxy_id="1881",
indep_account="dmstest",
user_id="104442")
default = alicloud.dms.get_enterprise_proxy_accesses_output(ids=[default_enterprise_proxy_access.id],
proxy_id="1881")
pulumi.export("alicloudDmsProxyAccesesExampleId", default.accesses[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 {
defaultEnterpriseProxyAccess, err := dms.NewEnterpriseProxyAccess(ctx, "default", &dms.EnterpriseProxyAccessArgs{
IndepPassword: pulumi.String("PASSWORD-DEMO"),
ProxyId: pulumi.String("1881"),
IndepAccount: pulumi.String("dmstest"),
UserId: pulumi.String("104442"),
})
if err != nil {
return err
}
_default := dms.GetEnterpriseProxyAccessesOutput(ctx, dms.GetEnterpriseProxyAccessesOutputArgs{
Ids: pulumi.StringArray{
defaultEnterpriseProxyAccess.ID(),
},
ProxyId: pulumi.String("1881"),
}, nil);
ctx.Export("alicloudDmsProxyAccesesExampleId", _default.ApplyT(func(_default dms.GetEnterpriseProxyAccessesResult) (*string, error) {
return &default.Accesses[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultEnterpriseProxyAccess = new AliCloud.Dms.EnterpriseProxyAccess("default", new()
{
IndepPassword = "PASSWORD-DEMO",
ProxyId = "1881",
IndepAccount = "dmstest",
UserId = "104442",
});
var @default = AliCloud.Dms.GetEnterpriseProxyAccesses.Invoke(new()
{
Ids = new[]
{
defaultEnterpriseProxyAccess.Id,
},
ProxyId = "1881",
});
return new Dictionary<string, object?>
{
["alicloudDmsProxyAccesesExampleId"] = @default.Apply(@default => @default.Apply(getEnterpriseProxyAccessesResult => getEnterpriseProxyAccessesResult.Accesses[0]?.Id)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dms.EnterpriseProxyAccess;
import com.pulumi.alicloud.dms.EnterpriseProxyAccessArgs;
import com.pulumi.alicloud.dms.DmsFunctions;
import com.pulumi.alicloud.dms.inputs.GetEnterpriseProxyAccessesArgs;
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) {
var defaultEnterpriseProxyAccess = new EnterpriseProxyAccess("defaultEnterpriseProxyAccess", EnterpriseProxyAccessArgs.builder()
.indepPassword("PASSWORD-DEMO")
.proxyId(1881)
.indepAccount("dmstest")
.userId(104442)
.build());
final var default = DmsFunctions.getEnterpriseProxyAccesses(GetEnterpriseProxyAccessesArgs.builder()
.ids(defaultEnterpriseProxyAccess.id())
.proxyId(1881)
.build());
ctx.export("alicloudDmsProxyAccesesExampleId", default_.applyValue(default_ -> default_.accesses()[0].id()));
}
}
resources:
defaultEnterpriseProxyAccess:
type: alicloud:dms:EnterpriseProxyAccess
name: default
properties:
indepPassword: PASSWORD-DEMO
proxyId: 1881
indepAccount: dmstest
userId: 104442
variables:
default:
fn::invoke:
Function: alicloud:dms:getEnterpriseProxyAccesses
Arguments:
ids:
- ${defaultEnterpriseProxyAccess.id}
proxyId: 1881
outputs:
alicloudDmsProxyAccesesExampleId: ${default.accesses[0].id}
Using getEnterpriseProxyAccesses
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 getEnterpriseProxyAccesses(args: GetEnterpriseProxyAccessesArgs, opts?: InvokeOptions): Promise<GetEnterpriseProxyAccessesResult>
function getEnterpriseProxyAccessesOutput(args: GetEnterpriseProxyAccessesOutputArgs, opts?: InvokeOptions): Output<GetEnterpriseProxyAccessesResult>
def get_enterprise_proxy_accesses(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
proxy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnterpriseProxyAccessesResult
def get_enterprise_proxy_accesses_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
proxy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseProxyAccessesResult]
func GetEnterpriseProxyAccesses(ctx *Context, args *GetEnterpriseProxyAccessesArgs, opts ...InvokeOption) (*GetEnterpriseProxyAccessesResult, error)
func GetEnterpriseProxyAccessesOutput(ctx *Context, args *GetEnterpriseProxyAccessesOutputArgs, opts ...InvokeOption) GetEnterpriseProxyAccessesResultOutput
> Note: This function is named GetEnterpriseProxyAccesses
in the Go SDK.
public static class GetEnterpriseProxyAccesses
{
public static Task<GetEnterpriseProxyAccessesResult> InvokeAsync(GetEnterpriseProxyAccessesArgs args, InvokeOptions? opts = null)
public static Output<GetEnterpriseProxyAccessesResult> Invoke(GetEnterpriseProxyAccessesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnterpriseProxyAccessesResult> getEnterpriseProxyAccesses(GetEnterpriseProxyAccessesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:dms/getEnterpriseProxyAccesses:getEnterpriseProxyAccesses
arguments:
# arguments dictionary
The following arguments are supported:
- Proxy
Id string - The ID of the security agent.
- Enable
Details bool - Ids List<string>
- A list of Proxy Access IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Proxy
Id string - The ID of the security agent.
- Enable
Details bool - Ids []string
- A list of Proxy Access IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- proxy
Id String - The ID of the security agent.
- enable
Details Boolean - ids List<String>
- A list of Proxy Access IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- proxy
Id string - The ID of the security agent.
- enable
Details boolean - ids string[]
- A list of Proxy Access IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- proxy_
id str - The ID of the security agent.
- enable_
details bool - ids Sequence[str]
- A list of Proxy Access IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- proxy
Id String - The ID of the security agent.
- enable
Details Boolean - ids List<String>
- A list of Proxy Access IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getEnterpriseProxyAccesses Result
The following output properties are available:
- Accesses
List<Pulumi.
Ali Cloud. Dms. Outputs. Get Enterprise Proxy Accesses Access> - A list of Proxy Access Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Proxy Access IDs.
- Proxy
Id string - The ID of the security agent.
- Enable
Details bool - Output
File string
- Accesses
[]Get
Enterprise Proxy Accesses Access - A list of Proxy Access Entries. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Proxy Access IDs.
- Proxy
Id string - The ID of the security agent.
- Enable
Details bool - Output
File string
- accesses
List<Get
Enterprise Proxy Accesses Access> - A list of Proxy Access Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Proxy Access IDs.
- proxy
Id String - The ID of the security agent.
- enable
Details Boolean - output
File String
- accesses
Get
Enterprise Proxy Accesses Access[] - A list of Proxy Access Entries. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Proxy Access IDs.
- proxy
Id string - The ID of the security agent.
- enable
Details boolean - output
File string
- accesses
Sequence[Get
Enterprise Proxy Accesses Access] - A list of Proxy Access Entries. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Proxy Access IDs.
- proxy_
id str - The ID of the security agent.
- enable_
details bool - output_
file str
- accesses List<Property Map>
- A list of Proxy Access Entries. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Proxy Access IDs.
- proxy
Id String - The ID of the security agent.
- enable
Details Boolean - output
File String
Supporting Types
GetEnterpriseProxyAccessesAccess
- Access
Id string - The authorized account of the security agent.
- Access
Secret string - Create
Time string - The authorization time of the security access agent permission.
- Id string
- Security Protection authorization ID.
- Indep
Account string - Database account.
- Instance
Id string - The ID of the instance.
- Origin
Info string - The source information of the security access agent permission is enabled, and the return value is as follows:Owner Authorization: The UID of the owner in parentheses.Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
- Proxy
Access stringId - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
- Proxy
Id string - The ID of the security agent.
- User
Id string - The user ID.
- User
Name string - User nickname.
- User
Uid string - User UID.
- Access
Id string - The authorized account of the security agent.
- Access
Secret string - Create
Time string - The authorization time of the security access agent permission.
- Id string
- Security Protection authorization ID.
- Indep
Account string - Database account.
- Instance
Id string - The ID of the instance.
- Origin
Info string - The source information of the security access agent permission is enabled, and the return value is as follows:Owner Authorization: The UID of the owner in parentheses.Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
- Proxy
Access stringId - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
- Proxy
Id string - The ID of the security agent.
- User
Id string - The user ID.
- User
Name string - User nickname.
- User
Uid string - User UID.
- access
Id String - The authorized account of the security agent.
- access
Secret String - create
Time String - The authorization time of the security access agent permission.
- id String
- Security Protection authorization ID.
- indep
Account String - Database account.
- instance
Id String - The ID of the instance.
- origin
Info String - The source information of the security access agent permission is enabled, and the return value is as follows:Owner Authorization: The UID of the owner in parentheses.Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
- proxy
Access StringId - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
- proxy
Id String - The ID of the security agent.
- user
Id String - The user ID.
- user
Name String - User nickname.
- user
Uid String - User UID.
- access
Id string - The authorized account of the security agent.
- access
Secret string - create
Time string - The authorization time of the security access agent permission.
- id string
- Security Protection authorization ID.
- indep
Account string - Database account.
- instance
Id string - The ID of the instance.
- origin
Info string - The source information of the security access agent permission is enabled, and the return value is as follows:Owner Authorization: The UID of the owner in parentheses.Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
- proxy
Access stringId - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
- proxy
Id string - The ID of the security agent.
- user
Id string - The user ID.
- user
Name string - User nickname.
- user
Uid string - User UID.
- access_
id str - The authorized account of the security agent.
- access_
secret str - create_
time str - The authorization time of the security access agent permission.
- id str
- Security Protection authorization ID.
- indep_
account str - Database account.
- instance_
id str - The ID of the instance.
- origin_
info str - The source information of the security access agent permission is enabled, and the return value is as follows:Owner Authorization: The UID of the owner in parentheses.Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
- proxy_
access_ strid - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
- proxy_
id str - The ID of the security agent.
- user_
id str - The user ID.
- user_
name str - User nickname.
- user_
uid str - User UID.
- access
Id String - The authorized account of the security agent.
- access
Secret String - create
Time String - The authorization time of the security access agent permission.
- id String
- Security Protection authorization ID.
- indep
Account String - Database account.
- instance
Id String - The ID of the instance.
- origin
Info String - The source information of the security access agent permission is enabled, and the return value is as follows:Owner Authorization: The UID of the owner in parentheses.Work Order Authorization: The ticket number in parentheses is the number of the user to apply for permission.
- proxy
Access StringId - Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
- proxy
Id String - The ID of the security agent.
- user
Id String - The user ID.
- user
Name String - User nickname.
- user
Uid String - User UID.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.