조직 멤버 CSV 내보내기
조직 멤버 CSV 내보내기
조직 멤버를 CSV로 내보내요. 이 작업은 조직 액세스 토큰(OAT)에서 발급한 bearer 토큰을 받아요.
출처: 문서
본문
GET /v2/orgs/{org_name}/members/export
조직 멤버 CSV 내보내기 작업이에요. 조직 멤버를 CSV로 내보내요. 이 작업은 조직 액세스 토큰(OAT)에서 발급한 bearer 토큰을 받아요.
요청 예시
실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.
curl \
--request GET \
--header "Authorization: Bearer ${TOKEN}" \
--header 'Accept: text/csv' \
'https://hub.docker.com/v2/orgs/myorganization/members/export'
요청과 응답
응답 200 Exported members
Schema:
{
"description": "CSV columns: Name, Username, Email, Type, Role, Teams, and Date Joined. The Role column contains the assigned role label. When administrative insights are available, the export also includes Last Logged-in Date, Docker Desktop Version, Last Seen Date, and Opted Out Analytics.",
"type": "string"
}
Headers:
{
"Content-Disposition": {
"example": "attachment;filename=\"{org_name}-members-{timestamp}.csv\"",
"schema": {
"type": "string"
}
}
}
Example:
Name,Username,Email,Type,Role,Teams,Date Joined
Jon Snow,dockeruser,[email protected],User,Owner,owners,2021-01-05 21:06:53.5064 +0000 UTC
응답 400 Bad Request
Schema:
{
"$ref": "#/components/schemas/error"
}
error:
{
"errinfo": null,
"message": "bad request"
}
응답 401 Unauthorized
Schema:
{
"$ref": "#/components/schemas/error"
}
error:
{
"errinfo": null,
"message": "unauthorized"
}
응답 403 Forbidden
Schema:
{
"$ref": "#/components/schemas/error"
}
error:
{
"errinfo": null,
"message": "permission denied"
}
응답 404 Not Found
Schema:
{
"$ref": "#/components/schemas/error"
}
error:
{
"errinfo": null,
"message": "not found"
}
전체 작업 계약
{
"description": "Export members of an organization as a CSV\n\nThis operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.\n",
"operationId": "getV2OrgsByOrgNameMembersExport",
"responses": {
"200": {
"content": {
"text/csv": {
"example": "Name,Username,Email,Type,Role,Teams,Date Joined\nJon Snow,dockeruser,[email protected],User,Owner,owners,2021-01-05 21:06:53.5064 +0000 UTC\n",
"schema": {
"description": "CSV columns: Name, Username, Email, Type, Role, Teams, and Date Joined. The Role column contains the assigned role label. When administrative insights are available, the export also includes Last Logged-in Date, Docker Desktop Version, Last Seen Date, and Opted Out Analytics.",
"type": "string"
}
}
},
"description": "Exported members",
"headers": {
"Content-Disposition": {
"example": "attachment;filename=\"{org_name}-members-{timestamp}.csv\"",
"schema": {
"type": "string"
}
}
}
},
"400": {
"$ref": "#/components/responses/bad_request"
},
"401": {
"$ref": "#/components/responses/unauthorized"
},
"403": {
"$ref": "#/components/responses/forbidden"
},
"404": {
"$ref": "#/components/responses/not_found"
}
},
"security": [
{
"bearerAuth": []
}
],
"summary": "Export org members CSV",
"tags": [
"orgs"
]
}