authz

권한 grant 발급·조회·회수

1 operations — 권한 grant 발급·조회·회수

GET /api/v1/tenants/{tenantID}/me/grants

authorizationGetApiV1TenantsByTenantIDMeGrants

자기 user_id 로 발급된 active grant 들을 시간 역순으로 조회.

  • 호출 권한: tenant_member
언어호출
nodesdk.gateway(…) — 리소스 모델 — 인자·반환 타입은 패키지의 TypeScript 정의 참조
goclient.Authz().AuthorizationGetApiV1TenantsByTenantIDMeGrants(ctx, axhub.OperationParams{PathParams: …, Query: …, Body: …})
javaclient.authz().authorizationGetApiV1TenantsByTenantIDMeGrants(pathParams, query, body) — 비동기: authorizationGetApiV1TenantsByTenantIDMeGrantsAsync(…) → CompletableFuture
kotlinclient.authz.authorizationGetApiV1TenantsByTenantIDMeGrants(pathParams, query, body) — suspend
pythonclient.authz.authorization_get_api_v1_tenants_by_tenant_id_me_grants(path_params=…, query=…, body=…) — AsyncAxHubClient 는 동일명 await
rubyclient.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
idstring
policyIds (wire: policy_ids)array<string>
presetId (wire: preset_id)string
reasonstring
revokedAt (wire: revoked_at)string
revokedBy (wire: revoked_by)string
sourcestring
statusstringStatus 는 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에러 처리