authz
권한 grant 발급·조회·회수
1 operations — 권한 grant 발급·조회·회수
GET /api/v1/tenants/{tenantID}/me/grants
authorizationGetApiV1TenantsByTenantIDMeGrants
자기 user_id 로 발급된 active grant 들을 시간 역순으로 조회.
- 호출 권한: tenant_member
| 언어 | 호출 |
|---|---|
| node | sdk.gateway(…) — 리소스 모델 — 인자·반환 타입은 패키지의 TypeScript 정의 참조 |
| go | client.Authz().AuthorizationGetApiV1TenantsByTenantIDMeGrants(ctx, axhub.OperationParams{PathParams: …, Query: …, Body: …}) |
| java | client.authz().authorizationGetApiV1TenantsByTenantIDMeGrants(pathParams, query, body) — 비동기: authorizationGetApiV1TenantsByTenantIDMeGrantsAsync(…) → CompletableFuture |
| kotlin | client.authz.authorizationGetApiV1TenantsByTenantIDMeGrants(pathParams, query, body) — suspend |
| python | client.authz.authorization_get_api_v1_tenants_by_tenant_id_me_grants(path_params=…, query=…, body=…) — AsyncAxHubClient 는 동일명 await |
| ruby | client.authz.authorization_get_api_v1_tenants_by_tenant_id_me_grants(path_params: …, query: …, body: …) |
| 공통 | request("authorizationGetApiV1TenantsByTenantIDMeGrants", pathParams, query, body) |
Path 파라미터 — pathParams 로 전달
| 이름 | 타입 | 설명 |
|---|---|---|
tenantID 필수 | string | 테넌트 UUID |
응답 — 200 · OK
배열 응답 → SDK 는 {"value": [...]} 로 감싸 반환. 원소 필드:
| 이름 | 타입 | 설명 |
|---|---|---|
connectorId (wire: connector_id) | string | |
createdAt (wire: created_at) | string | |
expiresAt (wire: expires_at) | string | |
grantedAt (wire: granted_at) | string | |
grantedBy (wire: granted_by) | string | |
id | string | |
policyIds (wire: policy_ids) | array<string> | |
presetId (wire: preset_id) | string | |
reason | string | |
revokedAt (wire: revoked_at) | string | |
revokedBy (wire: revoked_by) | string | |
source | string | |
status | string | Status 는 active / revoked / expired. |
subjectId (wire: subject_id) | string | |
subjectKind (wire: subject_kind) | string | |
tenantId (wire: tenant_id) | string | |
updatedAt (wire: updated_at) | string |
에러 status: 401 403 500 — 에러 처리