Skip to content

Get Administrator Account

guardduty_get_administrator_account R Documentation

Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account

Description

Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.

Based on the type of account that runs this API, the following list shows how the API behavior varies:

  • When the GuardDuty administrator account runs this API, it will return success (⁠HTTP 200⁠) but no content.

  • When a member account runs this API, it will return the details of the GuardDuty administrator account that is associated with this calling member account.

  • When an individual account (not associated with an organization) runs this API, it will return success (⁠HTTP 200⁠) but no content.

Usage

guardduty_get_administrator_account(DetectorId)

Arguments

DetectorId

[required] The unique ID of the detector of the GuardDuty member account.

Value

A list with the following syntax:

list(
  Administrator = list(
    AccountId = "string",
    InvitationId = "string",
    RelationshipStatus = "string",
    InvitedAt = "string"
  )
)

Request syntax

svc$get_administrator_account(
  DetectorId = "string"
)