Skip to content

Describe Directories

directoryservice_describe_directories R Documentation

Obtains information about the directories that belong to this account

Description

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to describe_directories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Usage

directoryservice_describe_directories(DirectoryIds, NextToken, Limit)

Arguments

DirectoryIds

A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

NextToken

The DescribeDirectoriesResult.NextToken value from a previous call to describe_directories. Pass null if this is the first call.

Limit

The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

Value

A list with the following syntax:

list(
  DirectoryDescriptions = list(
    list(
      DirectoryId = "string",
      Name = "string",
      ShortName = "string",
      Size = "Small"|"Large",
      Edition = "Enterprise"|"Standard",
      Alias = "string",
      AccessUrl = "string",
      Description = "string",
      DnsIpAddrs = list(
        "string"
      ),
      Stage = "Requested"|"Creating"|"Created"|"Active"|"Inoperable"|"Impaired"|"Restoring"|"RestoreFailed"|"Deleting"|"Deleted"|"Failed",
      ShareStatus = "Shared"|"PendingAcceptance"|"Rejected"|"Rejecting"|"RejectFailed"|"Sharing"|"ShareFailed"|"Deleted"|"Deleting",
      ShareMethod = "ORGANIZATIONS"|"HANDSHAKE",
      ShareNotes = "string",
      LaunchTime = as.POSIXct(
        "2015-01-01"
      ),
      StageLastUpdatedDateTime = as.POSIXct(
        "2015-01-01"
      ),
      Type = "SimpleAD"|"ADConnector"|"MicrosoftAD"|"SharedMicrosoftAD",
      VpcSettings = list(
        VpcId = "string",
        SubnetIds = list(
          "string"
        ),
        SecurityGroupId = "string",
        AvailabilityZones = list(
          "string"
        )
      ),
      ConnectSettings = list(
        VpcId = "string",
        SubnetIds = list(
          "string"
        ),
        CustomerUserName = "string",
        SecurityGroupId = "string",
        AvailabilityZones = list(
          "string"
        ),
        ConnectIps = list(
          "string"
        )
      ),
      RadiusSettings = list(
        RadiusServers = list(
          "string"
        ),
        RadiusPort = 123,
        RadiusTimeout = 123,
        RadiusRetries = 123,
        SharedSecret = "string",
        AuthenticationProtocol = "PAP"|"CHAP"|"MS-CHAPv1"|"MS-CHAPv2",
        DisplayLabel = "string",
        UseSameUsername = TRUE|FALSE
      ),
      RadiusStatus = "Creating"|"Completed"|"Failed",
      StageReason = "string",
      SsoEnabled = TRUE|FALSE,
      DesiredNumberOfDomainControllers = 123,
      OwnerDirectoryDescription = list(
        DirectoryId = "string",
        AccountId = "string",
        DnsIpAddrs = list(
          "string"
        ),
        VpcSettings = list(
          VpcId = "string",
          SubnetIds = list(
            "string"
          ),
          SecurityGroupId = "string",
          AvailabilityZones = list(
            "string"
          )
        ),
        RadiusSettings = list(
          RadiusServers = list(
            "string"
          ),
          RadiusPort = 123,
          RadiusTimeout = 123,
          RadiusRetries = 123,
          SharedSecret = "string",
          AuthenticationProtocol = "PAP"|"CHAP"|"MS-CHAPv1"|"MS-CHAPv2",
          DisplayLabel = "string",
          UseSameUsername = TRUE|FALSE
        ),
        RadiusStatus = "Creating"|"Completed"|"Failed"
      ),
      RegionsInfo = list(
        PrimaryRegion = "string",
        AdditionalRegions = list(
          "string"
        )
      ),
      OsVersion = "SERVER_2012"|"SERVER_2019"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$describe_directories(
  DirectoryIds = list(
    "string"
  ),
  NextToken = "string",
  Limit = 123
)