Alibaba Cloud v3.63.0 published on Monday, Sep 30, 2024 by Pulumi
alicloud.eds.getRamDirectories
Explore with Pulumi AI
This data source provides the Ecd Ram Directories of the current Alibaba Cloud user.
NOTE: Available in v1.174.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.eds.getRamDirectories({
ids: ["example_id"],
});
export const ecdRamDirectoryId1 = ids.then(ids => ids.directories?.[0]?.id);
const nameRegex = alicloud.eds.getRamDirectories({
nameRegex: "^my-RamDirectory",
});
export const ecdRamDirectoryId2 = nameRegex.then(nameRegex => nameRegex.directories?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.eds.get_ram_directories(ids=["example_id"])
pulumi.export("ecdRamDirectoryId1", ids.directories[0].id)
name_regex = alicloud.eds.get_ram_directories(name_regex="^my-RamDirectory")
pulumi.export("ecdRamDirectoryId2", name_regex.directories[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := eds.GetRamDirectories(ctx, &eds.GetRamDirectoriesArgs{
Ids: []string{
"example_id",
},
}, nil)
if err != nil {
return err
}
ctx.Export("ecdRamDirectoryId1", ids.Directories[0].Id)
nameRegex, err := eds.GetRamDirectories(ctx, &eds.GetRamDirectoriesArgs{
NameRegex: pulumi.StringRef("^my-RamDirectory"),
}, nil)
if err != nil {
return err
}
ctx.Export("ecdRamDirectoryId2", nameRegex.Directories[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Eds.GetRamDirectories.Invoke(new()
{
Ids = new[]
{
"example_id",
},
});
var nameRegex = AliCloud.Eds.GetRamDirectories.Invoke(new()
{
NameRegex = "^my-RamDirectory",
});
return new Dictionary<string, object?>
{
["ecdRamDirectoryId1"] = ids.Apply(getRamDirectoriesResult => getRamDirectoriesResult.Directories[0]?.Id),
["ecdRamDirectoryId2"] = nameRegex.Apply(getRamDirectoriesResult => getRamDirectoriesResult.Directories[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eds.EdsFunctions;
import com.pulumi.alicloud.eds.inputs.GetRamDirectoriesArgs;
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 = EdsFunctions.getRamDirectories(GetRamDirectoriesArgs.builder()
.ids("example_id")
.build());
ctx.export("ecdRamDirectoryId1", ids.applyValue(getRamDirectoriesResult -> getRamDirectoriesResult.directories()[0].id()));
final var nameRegex = EdsFunctions.getRamDirectories(GetRamDirectoriesArgs.builder()
.nameRegex("^my-RamDirectory")
.build());
ctx.export("ecdRamDirectoryId2", nameRegex.applyValue(getRamDirectoriesResult -> getRamDirectoriesResult.directories()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:eds:getRamDirectories
Arguments:
ids:
- example_id
nameRegex:
fn::invoke:
Function: alicloud:eds:getRamDirectories
Arguments:
nameRegex: ^my-RamDirectory
outputs:
ecdRamDirectoryId1: ${ids.directories[0].id}
ecdRamDirectoryId2: ${nameRegex.directories[0].id}
Using getRamDirectories
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 getRamDirectories(args: GetRamDirectoriesArgs, opts?: InvokeOptions): Promise<GetRamDirectoriesResult>
function getRamDirectoriesOutput(args: GetRamDirectoriesOutputArgs, opts?: InvokeOptions): Output<GetRamDirectoriesResult>
def get_ram_directories(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRamDirectoriesResult
def get_ram_directories_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRamDirectoriesResult]
func GetRamDirectories(ctx *Context, args *GetRamDirectoriesArgs, opts ...InvokeOption) (*GetRamDirectoriesResult, error)
func GetRamDirectoriesOutput(ctx *Context, args *GetRamDirectoriesOutputArgs, opts ...InvokeOption) GetRamDirectoriesResultOutput
> Note: This function is named GetRamDirectories
in the Go SDK.
public static class GetRamDirectories
{
public static Task<GetRamDirectoriesResult> InvokeAsync(GetRamDirectoriesArgs args, InvokeOptions? opts = null)
public static Output<GetRamDirectoriesResult> Invoke(GetRamDirectoriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRamDirectoriesResult> getRamDirectories(GetRamDirectoriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:eds/getRamDirectories:getRamDirectories
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Ram Directory IDs.
- Name
Regex string - A regex string to filter results by Ram Directory name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of directory. Valid values:
REGISTERING
,REGISTERED
,DEREGISTERING
,NEEDCONFIGTRUST
,CONFIGTRUSTFAILED
,DEREGISTERED
,ERROR
,CONFIGTRUSTING
,NEEDCONFIGUSER
.
- Ids []string
- A list of Ram Directory IDs.
- Name
Regex string - A regex string to filter results by Ram Directory name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- The status of directory. Valid values:
REGISTERING
,REGISTERED
,DEREGISTERING
,NEEDCONFIGTRUST
,CONFIGTRUSTFAILED
,DEREGISTERED
,ERROR
,CONFIGTRUSTING
,NEEDCONFIGUSER
.
- ids List<String>
- A list of Ram Directory IDs.
- name
Regex String - A regex string to filter results by Ram Directory name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of directory. Valid values:
REGISTERING
,REGISTERED
,DEREGISTERING
,NEEDCONFIGTRUST
,CONFIGTRUSTFAILED
,DEREGISTERED
,ERROR
,CONFIGTRUSTING
,NEEDCONFIGUSER
.
- ids string[]
- A list of Ram Directory IDs.
- name
Regex string - A regex string to filter results by Ram Directory name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- The status of directory. Valid values:
REGISTERING
,REGISTERED
,DEREGISTERING
,NEEDCONFIGTRUST
,CONFIGTRUSTFAILED
,DEREGISTERED
,ERROR
,CONFIGTRUSTING
,NEEDCONFIGUSER
.
- ids Sequence[str]
- A list of Ram Directory IDs.
- name_
regex str - A regex string to filter results by Ram Directory name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- The status of directory. Valid values:
REGISTERING
,REGISTERED
,DEREGISTERING
,NEEDCONFIGTRUST
,CONFIGTRUSTFAILED
,DEREGISTERED
,ERROR
,CONFIGTRUSTING
,NEEDCONFIGUSER
.
- ids List<String>
- A list of Ram Directory IDs.
- name
Regex String - A regex string to filter results by Ram Directory name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- The status of directory. Valid values:
REGISTERING
,REGISTERED
,DEREGISTERING
,NEEDCONFIGTRUST
,CONFIGTRUSTFAILED
,DEREGISTERED
,ERROR
,CONFIGTRUSTING
,NEEDCONFIGUSER
.
getRamDirectories Result
The following output properties are available:
- Directories
List<Pulumi.
Ali Cloud. Eds. Outputs. Get Ram Directories Directory> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Name
Regex string - Output
File string - Status string
- Directories
[]Get
Ram Directories Directory - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Name
Regex string - Output
File string - Status string
- directories
List<Get
Ram Directories Directory> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status String
- directories
Get
Ram Directories Directory[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- name
Regex string - output
File string - status string
- directories
Sequence[Get
Ram Directories Directory] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- name_
regex str - output_
file str - status str
- directories List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- name
Regex String - output
File String - status String
Supporting Types
GetRamDirectoriesDirectory
- Ad
Connectors List<Pulumi.Ali Cloud. Eds. Inputs. Get Ram Directories Directory Ad Connector> - The AD connectors.
- Create
Time string - The CreateTime of resource.
- Custom
Security stringGroup Id - The id of the custom security group.
- Desktop
Access stringType - The desktop access type.
- Desktop
Vpc stringEndpoint - The desktop vpc endpoint.
- Directory
Type string - The directory type.
- Dns
Addresses List<string> - The address of DNSAddress.
- Dns
User stringName - The username of DNS.
- Domain
Name string - The name of the domain.
- Domain
Password string - The domain password.
- Domain
User stringName - The username of the domain.
- Enable
Admin boolAccess - Whether to enable admin access.
- Enable
Cross boolDesktop Access - Whether to enable cross desktop access.
- Enable
Internet boolAccess - Whether enable internet access.
- File
System List<string>Ids - The ids of filesystem.
- Id string
- The ID of the Ram Directory.
- Logs
List<Pulumi.
Ali Cloud. Eds. Inputs. Get Ram Directories Directory Log> - The register log information.
- Mfa
Enabled bool - Whether to enable MFA.
- Ram
Directory stringId - The ID of ram directory.
- Ram
Directory stringName - The name of directory.
- Sso
Enabled bool - Whether to enable SSO.
- Status string
- The status of directory.
- Sub
Dns List<string>Addresses - The address of sub DNS.
- Sub
Domain stringName - The Name of the sub-domain.
- Trust
Password string - The trust password.
- Vpc
Id string - The ID of the vpc.
- Vswitch
Ids List<string> - List of vSwitch IDs in the directory.
- Ad
Connectors []GetRam Directories Directory Ad Connector - The AD connectors.
- Create
Time string - The CreateTime of resource.
- Custom
Security stringGroup Id - The id of the custom security group.
- Desktop
Access stringType - The desktop access type.
- Desktop
Vpc stringEndpoint - The desktop vpc endpoint.
- Directory
Type string - The directory type.
- Dns
Addresses []string - The address of DNSAddress.
- Dns
User stringName - The username of DNS.
- Domain
Name string - The name of the domain.
- Domain
Password string - The domain password.
- Domain
User stringName - The username of the domain.
- Enable
Admin boolAccess - Whether to enable admin access.
- Enable
Cross boolDesktop Access - Whether to enable cross desktop access.
- Enable
Internet boolAccess - Whether enable internet access.
- File
System []stringIds - The ids of filesystem.
- Id string
- The ID of the Ram Directory.
- Logs
[]Get
Ram Directories Directory Log - The register log information.
- Mfa
Enabled bool - Whether to enable MFA.
- Ram
Directory stringId - The ID of ram directory.
- Ram
Directory stringName - The name of directory.
- Sso
Enabled bool - Whether to enable SSO.
- Status string
- The status of directory.
- Sub
Dns []stringAddresses - The address of sub DNS.
- Sub
Domain stringName - The Name of the sub-domain.
- Trust
Password string - The trust password.
- Vpc
Id string - The ID of the vpc.
- Vswitch
Ids []string - List of vSwitch IDs in the directory.
- ad
Connectors List<GetRam Directories Directory Ad Connector> - The AD connectors.
- create
Time String - The CreateTime of resource.
- custom
Security StringGroup Id - The id of the custom security group.
- desktop
Access StringType - The desktop access type.
- desktop
Vpc StringEndpoint - The desktop vpc endpoint.
- directory
Type String - The directory type.
- dns
Addresses List<String> - The address of DNSAddress.
- dns
User StringName - The username of DNS.
- domain
Name String - The name of the domain.
- domain
Password String - The domain password.
- domain
User StringName - The username of the domain.
- enable
Admin BooleanAccess - Whether to enable admin access.
- enable
Cross BooleanDesktop Access - Whether to enable cross desktop access.
- enable
Internet BooleanAccess - Whether enable internet access.
- file
System List<String>Ids - The ids of filesystem.
- id String
- The ID of the Ram Directory.
- logs
List<Get
Ram Directories Directory Log> - The register log information.
- mfa
Enabled Boolean - Whether to enable MFA.
- ram
Directory StringId - The ID of ram directory.
- ram
Directory StringName - The name of directory.
- sso
Enabled Boolean - Whether to enable SSO.
- status String
- The status of directory.
- sub
Dns List<String>Addresses - The address of sub DNS.
- sub
Domain StringName - The Name of the sub-domain.
- trust
Password String - The trust password.
- vpc
Id String - The ID of the vpc.
- vswitch
Ids List<String> - List of vSwitch IDs in the directory.
- ad
Connectors GetRam Directories Directory Ad Connector[] - The AD connectors.
- create
Time string - The CreateTime of resource.
- custom
Security stringGroup Id - The id of the custom security group.
- desktop
Access stringType - The desktop access type.
- desktop
Vpc stringEndpoint - The desktop vpc endpoint.
- directory
Type string - The directory type.
- dns
Addresses string[] - The address of DNSAddress.
- dns
User stringName - The username of DNS.
- domain
Name string - The name of the domain.
- domain
Password string - The domain password.
- domain
User stringName - The username of the domain.
- enable
Admin booleanAccess - Whether to enable admin access.
- enable
Cross booleanDesktop Access - Whether to enable cross desktop access.
- enable
Internet booleanAccess - Whether enable internet access.
- file
System string[]Ids - The ids of filesystem.
- id string
- The ID of the Ram Directory.
- logs
Get
Ram Directories Directory Log[] - The register log information.
- mfa
Enabled boolean - Whether to enable MFA.
- ram
Directory stringId - The ID of ram directory.
- ram
Directory stringName - The name of directory.
- sso
Enabled boolean - Whether to enable SSO.
- status string
- The status of directory.
- sub
Dns string[]Addresses - The address of sub DNS.
- sub
Domain stringName - The Name of the sub-domain.
- trust
Password string - The trust password.
- vpc
Id string - The ID of the vpc.
- vswitch
Ids string[] - List of vSwitch IDs in the directory.
- ad_
connectors Sequence[GetRam Directories Directory Ad Connector] - The AD connectors.
- create_
time str - The CreateTime of resource.
- custom_
security_ strgroup_ id - The id of the custom security group.
- desktop_
access_ strtype - The desktop access type.
- desktop_
vpc_ strendpoint - The desktop vpc endpoint.
- directory_
type str - The directory type.
- dns_
addresses Sequence[str] - The address of DNSAddress.
- dns_
user_ strname - The username of DNS.
- domain_
name str - The name of the domain.
- domain_
password str - The domain password.
- domain_
user_ strname - The username of the domain.
- enable_
admin_ boolaccess - Whether to enable admin access.
- enable_
cross_ booldesktop_ access - Whether to enable cross desktop access.
- enable_
internet_ boolaccess - Whether enable internet access.
- file_
system_ Sequence[str]ids - The ids of filesystem.
- id str
- The ID of the Ram Directory.
- logs
Sequence[Get
Ram Directories Directory Log] - The register log information.
- mfa_
enabled bool - Whether to enable MFA.
- ram_
directory_ strid - The ID of ram directory.
- ram_
directory_ strname - The name of directory.
- sso_
enabled bool - Whether to enable SSO.
- status str
- The status of directory.
- sub_
dns_ Sequence[str]addresses - The address of sub DNS.
- sub_
domain_ strname - The Name of the sub-domain.
- trust_
password str - The trust password.
- vpc_
id str - The ID of the vpc.
- vswitch_
ids Sequence[str] - List of vSwitch IDs in the directory.
- ad
Connectors List<Property Map> - The AD connectors.
- create
Time String - The CreateTime of resource.
- custom
Security StringGroup Id - The id of the custom security group.
- desktop
Access StringType - The desktop access type.
- desktop
Vpc StringEndpoint - The desktop vpc endpoint.
- directory
Type String - The directory type.
- dns
Addresses List<String> - The address of DNSAddress.
- dns
User StringName - The username of DNS.
- domain
Name String - The name of the domain.
- domain
Password String - The domain password.
- domain
User StringName - The username of the domain.
- enable
Admin BooleanAccess - Whether to enable admin access.
- enable
Cross BooleanDesktop Access - Whether to enable cross desktop access.
- enable
Internet BooleanAccess - Whether enable internet access.
- file
System List<String>Ids - The ids of filesystem.
- id String
- The ID of the Ram Directory.
- logs List<Property Map>
- The register log information.
- mfa
Enabled Boolean - Whether to enable MFA.
- ram
Directory StringId - The ID of ram directory.
- ram
Directory StringName - The name of directory.
- sso
Enabled Boolean - Whether to enable SSO.
- status String
- The status of directory.
- sub
Dns List<String>Addresses - The address of sub DNS.
- sub
Domain StringName - The Name of the sub-domain.
- trust
Password String - The trust password.
- vpc
Id String - The ID of the vpc.
- vswitch
Ids List<String> - List of vSwitch IDs in the directory.
GetRamDirectoriesDirectoryAdConnector
- Ad
Connector stringAddress - The address of AD connector.
- Connector
Status string - The status of connector.
- Network
Interface stringId - The ID of the network interface.
- Vswitch
Id string - The ID of vSwitch.
- Ad
Connector stringAddress - The address of AD connector.
- Connector
Status string - The status of connector.
- Network
Interface stringId - The ID of the network interface.
- Vswitch
Id string - The ID of vSwitch.
- ad
Connector StringAddress - The address of AD connector.
- connector
Status String - The status of connector.
- network
Interface StringId - The ID of the network interface.
- vswitch
Id String - The ID of vSwitch.
- ad
Connector stringAddress - The address of AD connector.
- connector
Status string - The status of connector.
- network
Interface stringId - The ID of the network interface.
- vswitch
Id string - The ID of vSwitch.
- ad_
connector_ straddress - The address of AD connector.
- connector_
status str - The status of connector.
- network_
interface_ strid - The ID of the network interface.
- vswitch_
id str - The ID of vSwitch.
- ad
Connector StringAddress - The address of AD connector.
- connector
Status String - The status of connector.
- network
Interface StringId - The ID of the network interface.
- vswitch
Id String - The ID of vSwitch.
GetRamDirectoriesDirectoryLog
- level str
- The level of log.
- message str
- The message of log.
- step str
- The step of log.
- time_
stamp str - The time stamp of log.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.