1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eds
  5. getRamDirectories
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.eds.getRamDirectories

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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.
    NameRegex string
    A regex string to filter results by Ram Directory name.
    OutputFile 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.
    NameRegex string
    A regex string to filter results by Ram Directory name.
    OutputFile 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.
    nameRegex String
    A regex string to filter results by Ram Directory name.
    outputFile 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.
    nameRegex string
    A regex string to filter results by Ram Directory name.
    outputFile 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.
    nameRegex String
    A regex string to filter results by Ram Directory name.
    outputFile 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.AliCloud.Eds.Outputs.GetRamDirectoriesDirectory>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    NameRegex string
    OutputFile string
    Status string
    Directories []GetRamDirectoriesDirectory
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    NameRegex string
    OutputFile string
    Status string
    directories List<GetRamDirectoriesDirectory>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    nameRegex String
    outputFile String
    status String
    directories GetRamDirectoriesDirectory[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    nameRegex string
    outputFile string
    status string
    directories Sequence[GetRamDirectoriesDirectory]
    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>
    nameRegex String
    outputFile String
    status String

    Supporting Types

    GetRamDirectoriesDirectory

    AdConnectors List<Pulumi.AliCloud.Eds.Inputs.GetRamDirectoriesDirectoryAdConnector>
    The AD connectors.
    CreateTime string
    The CreateTime of resource.
    CustomSecurityGroupId string
    The id of the custom security group.
    DesktopAccessType string
    The desktop access type.
    DesktopVpcEndpoint string
    The desktop vpc endpoint.
    DirectoryType string
    The directory type.
    DnsAddresses List<string>
    The address of DNSAddress.
    DnsUserName string
    The username of DNS.
    DomainName string
    The name of the domain.
    DomainPassword string
    The domain password.
    DomainUserName string
    The username of the domain.
    EnableAdminAccess bool
    Whether to enable admin access.
    EnableCrossDesktopAccess bool
    Whether to enable cross desktop access.
    EnableInternetAccess bool
    Whether enable internet access.
    FileSystemIds List<string>
    The ids of filesystem.
    Id string
    The ID of the Ram Directory.
    Logs List<Pulumi.AliCloud.Eds.Inputs.GetRamDirectoriesDirectoryLog>
    The register log information.
    MfaEnabled bool
    Whether to enable MFA.
    RamDirectoryId string
    The ID of ram directory.
    RamDirectoryName string
    The name of directory.
    SsoEnabled bool
    Whether to enable SSO.
    Status string
    The status of directory.
    SubDnsAddresses List<string>
    The address of sub DNS.
    SubDomainName string
    The Name of the sub-domain.
    TrustPassword string
    The trust password.
    VpcId string
    The ID of the vpc.
    VswitchIds List<string>
    List of vSwitch IDs in the directory.
    AdConnectors []GetRamDirectoriesDirectoryAdConnector
    The AD connectors.
    CreateTime string
    The CreateTime of resource.
    CustomSecurityGroupId string
    The id of the custom security group.
    DesktopAccessType string
    The desktop access type.
    DesktopVpcEndpoint string
    The desktop vpc endpoint.
    DirectoryType string
    The directory type.
    DnsAddresses []string
    The address of DNSAddress.
    DnsUserName string
    The username of DNS.
    DomainName string
    The name of the domain.
    DomainPassword string
    The domain password.
    DomainUserName string
    The username of the domain.
    EnableAdminAccess bool
    Whether to enable admin access.
    EnableCrossDesktopAccess bool
    Whether to enable cross desktop access.
    EnableInternetAccess bool
    Whether enable internet access.
    FileSystemIds []string
    The ids of filesystem.
    Id string
    The ID of the Ram Directory.
    Logs []GetRamDirectoriesDirectoryLog
    The register log information.
    MfaEnabled bool
    Whether to enable MFA.
    RamDirectoryId string
    The ID of ram directory.
    RamDirectoryName string
    The name of directory.
    SsoEnabled bool
    Whether to enable SSO.
    Status string
    The status of directory.
    SubDnsAddresses []string
    The address of sub DNS.
    SubDomainName string
    The Name of the sub-domain.
    TrustPassword string
    The trust password.
    VpcId string
    The ID of the vpc.
    VswitchIds []string
    List of vSwitch IDs in the directory.
    adConnectors List<GetRamDirectoriesDirectoryAdConnector>
    The AD connectors.
    createTime String
    The CreateTime of resource.
    customSecurityGroupId String
    The id of the custom security group.
    desktopAccessType String
    The desktop access type.
    desktopVpcEndpoint String
    The desktop vpc endpoint.
    directoryType String
    The directory type.
    dnsAddresses List<String>
    The address of DNSAddress.
    dnsUserName String
    The username of DNS.
    domainName String
    The name of the domain.
    domainPassword String
    The domain password.
    domainUserName String
    The username of the domain.
    enableAdminAccess Boolean
    Whether to enable admin access.
    enableCrossDesktopAccess Boolean
    Whether to enable cross desktop access.
    enableInternetAccess Boolean
    Whether enable internet access.
    fileSystemIds List<String>
    The ids of filesystem.
    id String
    The ID of the Ram Directory.
    logs List<GetRamDirectoriesDirectoryLog>
    The register log information.
    mfaEnabled Boolean
    Whether to enable MFA.
    ramDirectoryId String
    The ID of ram directory.
    ramDirectoryName String
    The name of directory.
    ssoEnabled Boolean
    Whether to enable SSO.
    status String
    The status of directory.
    subDnsAddresses List<String>
    The address of sub DNS.
    subDomainName String
    The Name of the sub-domain.
    trustPassword String
    The trust password.
    vpcId String
    The ID of the vpc.
    vswitchIds List<String>
    List of vSwitch IDs in the directory.
    adConnectors GetRamDirectoriesDirectoryAdConnector[]
    The AD connectors.
    createTime string
    The CreateTime of resource.
    customSecurityGroupId string
    The id of the custom security group.
    desktopAccessType string
    The desktop access type.
    desktopVpcEndpoint string
    The desktop vpc endpoint.
    directoryType string
    The directory type.
    dnsAddresses string[]
    The address of DNSAddress.
    dnsUserName string
    The username of DNS.
    domainName string
    The name of the domain.
    domainPassword string
    The domain password.
    domainUserName string
    The username of the domain.
    enableAdminAccess boolean
    Whether to enable admin access.
    enableCrossDesktopAccess boolean
    Whether to enable cross desktop access.
    enableInternetAccess boolean
    Whether enable internet access.
    fileSystemIds string[]
    The ids of filesystem.
    id string
    The ID of the Ram Directory.
    logs GetRamDirectoriesDirectoryLog[]
    The register log information.
    mfaEnabled boolean
    Whether to enable MFA.
    ramDirectoryId string
    The ID of ram directory.
    ramDirectoryName string
    The name of directory.
    ssoEnabled boolean
    Whether to enable SSO.
    status string
    The status of directory.
    subDnsAddresses string[]
    The address of sub DNS.
    subDomainName string
    The Name of the sub-domain.
    trustPassword string
    The trust password.
    vpcId string
    The ID of the vpc.
    vswitchIds string[]
    List of vSwitch IDs in the directory.
    ad_connectors Sequence[GetRamDirectoriesDirectoryAdConnector]
    The AD connectors.
    create_time str
    The CreateTime of resource.
    custom_security_group_id str
    The id of the custom security group.
    desktop_access_type str
    The desktop access type.
    desktop_vpc_endpoint str
    The desktop vpc endpoint.
    directory_type str
    The directory type.
    dns_addresses Sequence[str]
    The address of DNSAddress.
    dns_user_name str
    The username of DNS.
    domain_name str
    The name of the domain.
    domain_password str
    The domain password.
    domain_user_name str
    The username of the domain.
    enable_admin_access bool
    Whether to enable admin access.
    enable_cross_desktop_access bool
    Whether to enable cross desktop access.
    enable_internet_access bool
    Whether enable internet access.
    file_system_ids Sequence[str]
    The ids of filesystem.
    id str
    The ID of the Ram Directory.
    logs Sequence[GetRamDirectoriesDirectoryLog]
    The register log information.
    mfa_enabled bool
    Whether to enable MFA.
    ram_directory_id str
    The ID of ram directory.
    ram_directory_name str
    The name of directory.
    sso_enabled bool
    Whether to enable SSO.
    status str
    The status of directory.
    sub_dns_addresses Sequence[str]
    The address of sub DNS.
    sub_domain_name str
    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.
    adConnectors List<Property Map>
    The AD connectors.
    createTime String
    The CreateTime of resource.
    customSecurityGroupId String
    The id of the custom security group.
    desktopAccessType String
    The desktop access type.
    desktopVpcEndpoint String
    The desktop vpc endpoint.
    directoryType String
    The directory type.
    dnsAddresses List<String>
    The address of DNSAddress.
    dnsUserName String
    The username of DNS.
    domainName String
    The name of the domain.
    domainPassword String
    The domain password.
    domainUserName String
    The username of the domain.
    enableAdminAccess Boolean
    Whether to enable admin access.
    enableCrossDesktopAccess Boolean
    Whether to enable cross desktop access.
    enableInternetAccess Boolean
    Whether enable internet access.
    fileSystemIds List<String>
    The ids of filesystem.
    id String
    The ID of the Ram Directory.
    logs List<Property Map>
    The register log information.
    mfaEnabled Boolean
    Whether to enable MFA.
    ramDirectoryId String
    The ID of ram directory.
    ramDirectoryName String
    The name of directory.
    ssoEnabled Boolean
    Whether to enable SSO.
    status String
    The status of directory.
    subDnsAddresses List<String>
    The address of sub DNS.
    subDomainName String
    The Name of the sub-domain.
    trustPassword String
    The trust password.
    vpcId String
    The ID of the vpc.
    vswitchIds List<String>
    List of vSwitch IDs in the directory.

    GetRamDirectoriesDirectoryAdConnector

    AdConnectorAddress string
    The address of AD connector.
    ConnectorStatus string
    The status of connector.
    NetworkInterfaceId string
    The ID of the network interface.
    VswitchId string
    The ID of vSwitch.
    AdConnectorAddress string
    The address of AD connector.
    ConnectorStatus string
    The status of connector.
    NetworkInterfaceId string
    The ID of the network interface.
    VswitchId string
    The ID of vSwitch.
    adConnectorAddress String
    The address of AD connector.
    connectorStatus String
    The status of connector.
    networkInterfaceId String
    The ID of the network interface.
    vswitchId String
    The ID of vSwitch.
    adConnectorAddress string
    The address of AD connector.
    connectorStatus string
    The status of connector.
    networkInterfaceId string
    The ID of the network interface.
    vswitchId string
    The ID of vSwitch.
    ad_connector_address str
    The address of AD connector.
    connector_status str
    The status of connector.
    network_interface_id str
    The ID of the network interface.
    vswitch_id str
    The ID of vSwitch.
    adConnectorAddress String
    The address of AD connector.
    connectorStatus String
    The status of connector.
    networkInterfaceId String
    The ID of the network interface.
    vswitchId String
    The ID of vSwitch.

    GetRamDirectoriesDirectoryLog

    Level string
    The level of log.
    Message string
    The message of log.
    Step string
    The step of log.
    TimeStamp string
    The time stamp of log.
    Level string
    The level of log.
    Message string
    The message of log.
    Step string
    The step of log.
    TimeStamp string
    The time stamp of log.
    level String
    The level of log.
    message String
    The message of log.
    step String
    The step of log.
    timeStamp String
    The time stamp of log.
    level string
    The level of log.
    message string
    The message of log.
    step string
    The step of log.
    timeStamp string
    The time stamp of log.
    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.
    level String
    The level of log.
    message String
    The message of log.
    step String
    The step of log.
    timeStamp String
    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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi