targetdomain accounts

get/secrets-manager/api/v1/targetdomains/{targetDomainID}/accounts

Get all accounts in target domain

sortkeystring
sortdirstring
Enum
  • asc
  • desc
limitint
offsetint

Responses

Response examples

Success

{
  "count": 123,
  "items": [
    {
      "id": "5bf77342-221c-11ee-be56-0242ac120002",
      "username": "string",
      "email": "string",
      "full_name": "string",
      "source_id": "string",
      "security_id": "string",
      "additional_data": {},
      "target_domain": {
        "id": "5bf77342-221c-11ee-be56-0242ac120002",
        "name": "string",
        "deleted": true
      },
      "state": "MANAGED",
      "ignored": true,
      "comment": "string",
      "created": "2023-06-07T17:32:28Z",
      "author": "5bf77342-221c-11ee-be56-0242ac120002",
      "updated": "2023-06-07T17:32:28Z",
      "updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
    }
  ]
}
post/secrets-manager/api/v1/targetdomains/{targetDomainID}/accounts/search

Search accounts in target domain

keywordsstring

Space or comma separated list of search keywords

created_afterstring
Format
date-time
created_beforestring
Format
date-time
updated_afterstring
Format
date-time
updated_beforestring
Format
date-time
statestring
Enum
  • MANAGED
  • UNMANAGED
  • NEW
  • REMOVED
ignoredboolean

Responses

Request examples

{
  "keywords": "string",
  "created_after": "2023-06-07T17:32:28Z",
  "created_before": "2023-06-07T17:32:28Z",
  "updated_after": "2023-06-07T17:32:28Z",
  "updated_before": "2023-06-07T17:32:28Z",
  "state": "MANAGED",
  "ignored": true
}

Response examples

Success

{
  "count": 123,
  "items": [
    {
      "id": "5bf77342-221c-11ee-be56-0242ac120002",
      "username": "string",
      "email": "string",
      "full_name": "string",
      "source_id": "string",
      "security_id": "string",
      "additional_data": {},
      "target_domain": {
        "id": "5bf77342-221c-11ee-be56-0242ac120002",
        "name": "string",
        "deleted": true
      },
      "state": "MANAGED",
      "ignored": true,
      "comment": "string",
      "created": "2023-06-07T17:32:28Z",
      "author": "5bf77342-221c-11ee-be56-0242ac120002",
      "updated": "2023-06-07T17:32:28Z",
      "updated_by": "5bf77342-221c-11ee-be56-0242ac120002"
    }
  ]
}
get/secrets-manager/api/v1/targetdomains/{targetDomainID}/accounts/{accountID}

Get target domain account

targetDomainIDstring

required

Format
uuid
accountIDstring

required

Format
uuid

Responses

Response examples

Success

Empty response

put/secrets-manager/api/v1/targetdomains/{targetDomainID}/accounts/{accountID}

Modify target domain account

ignoredboolean
commentstring

Responses

Request examples

{
  "ignored": true,
  "comment": "string"
}

Response examples

Account was successfully modified

{
  "version": 123,
  "created": "2023-06-07T17:32:28Z"
}
post/secrets-manager/api/v1/targetdomains/{targetDomainID}/accounts/batch/edit

Modify target domain account

idsarray
changesobject (scannedaccount_changes)

Responses

Request examples

{
  "ids": [
    "5bf77342-221c-11ee-be56-0242ac120002"
  ],
  "changes": {
    "ignored": true,
    "comment": "string"
  }
}

Response examples

Account batch was successfully modified

{
  "version": 123,
  "created": "2023-06-07T17:32:28Z"
}

Was this page helpful?