Skip to main content
Astra Automation
此產品有較新版本可以使用。
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

擷取 LDAP 使用者

GET /accounts/{account_id}/core/v1/ldapUsers/{ldapUser_id}

傳回代表已儲存 LDAP 資源的 JSON 物件。

參數

Name 類型 必要 說明

account_id

字串

路徑

True

包含帳戶資源的 ID

  • 範例:{{.Account}}

ldapUser_id

字串

路徑

True

要列出的 ldapUser 集合的 ID

回應

Status: 200, Returns a JSON object representing the stored LDAP resource.
Name 類型 必要 說明

類型

字串

True

資源的媒體類型。定義的值為:

  • "應用程式/astra-ldapUser"

版本

字串

True

資源版本。定義的值為:

  • "1.0"

ID

字串

True

資源的全域唯一識別碼。定義的值為:

  • 符合 UUIDv4 架構

電子郵件

字串

錯誤

表示 LDAP 使用者電子郵件的 JSON 字串。定義的值為:

  • 最短長度:3

  • 最大長度:63

firstName

字串

錯誤

代表 LDAP 使用者名字的 JSON 字串。定義的值為:

  • 最短長度:1

  • 最大長度:63

lastName

字串

錯誤

表示 LDAP 使用者姓氏的 JSON 字串。定義的值為:

  • 最短長度:1

  • 最大長度:63

cn

字串

錯誤

表示 LDAP 群組名稱的 JSON 字串。定義的值為:

  • 最短長度:1

  • 最大長度:63

dn

字串

錯誤

表示 LDAP 群組專有名稱的 JSON 字串。定義的值為:

  • 符合 RFC 4514 標準

中繼資料

"type_astra_metadata"

True

與資源相關聯的用戶端和服務指定中繼資料。定義的值為:

  • 符合 Astra 中繼資料架構

範例回應
{
  "type": "application/astra-ldapUser",
  "version": "1.0",
  "id": "2add73ff-89dc-5ff1-be85-39d97549556d",
  "email": "johndoe@example.com",
  "firstName": "John",
  "lastName": "Doe",
  "cn": "John Doe",
  "dn": "cn=John Doe,ou=people,dc=example,dc=com",
  "metadata": {
    "labels": [],
    "creationTimestamp": "2022-10-06T20:58:16.305662Z",
    "modificationTimestamp": "2022-10-06T20:58:16.305662Z",
    "createdBy": "8f84cf09-8036-51e4-b579-bd30cb07b269"
  }
}

回應

Status: 401, Unauthorized
Name 類型 必要 說明

類型

字串

True

標題

字串

True

詳細資料

字串

True

狀態

字串

True

correlationID

字串

錯誤

範例回應
{
  "type": "https://astra.netapp.io/problems/3",
  "title": "Missing bearer token",
  "detail": "The request is missing the required bearer token.",
  "status": "401"
}

回應

Status: 400, Bad request
Name 類型 必要 說明

類型

字串

True

標題

字串

True

詳細資料

字串

True

狀態

字串

True

correlationID

字串

錯誤

invalidParams

陣列["invalidParams"]

錯誤

無效查詢參數清單

範例回應
{
  "type": "https://astra.netapp.io/problems/5",
  "title": "Invalid query parameters",
  "detail": "The supplied query parameters are invalid.",
  "status": "400"
}

回應

Status: 403, Forbidden
Name 類型 必要 說明

類型

字串

True

標題

字串

True

詳細資料

字串

True

狀態

字串

True

correlationID

字串

錯誤

範例回應
{
  "type": "https://astra.netapp.io/problems/11",
  "title": "Operation not permitted",
  "detail": "The requested operation isn't permitted.",
  "status": "403"
}

錯誤

Status: 404, Not found
Name 類型 必要 說明

類型

字串

True

標題

字串

True

詳細資料

字串

True

狀態

字串

True

correlationID

字串

錯誤

範例錯誤回應
{
  "type": "https://astra.netapp.io/problems/2",
  "title": "Collection not found",
  "detail": "The collection specified in the request URI wasn't found.",
  "status": "404"
}

定義

請參閱定義

type_astra_label

Name 類型 必要 說明

姓名

字串

True

字串

True

type_astra_metadata

與資源相關聯的用戶端和服務指定中繼資料。定義的值為:

  • 符合 Astra 中繼資料架構

Name 類型 必要 說明

標籤

陣列["type_astra_label"]

True

建立時間戳記

字串

True

修改時間戳記

字串

True

建立者

字串

True

modifiedBy

字串

錯誤

invalidParams

Name 類型 必要 說明

姓名

字串

True

無效查詢參數的名稱

原因

字串

True

查詢參數無效的原因