Admin SDK로 조직 관리하기

Admin SDK로 조직 관리하기

API 키에 연결된 조직을 읽고 이름을 바꿀 수 있어요.

출처: 문서

본문

개요 (Overview)

조직은 모든 프로젝트, 멤버, 역할, API 키를 소유하는 최상위 계정이에요. Admin SDK로 API 키에 연결된 조직을 읽고 이름을 바꿀 수 있어요.

이 페이지의 모든 메서드는 조직 API 키가 필요해요. 클라이언트 생성은 퀵스타트를 참고해요.

조직 조회 (Get Your Organization)

API 키에 연결된 조직을 조회할 수 있어요. id와 name을 포함해요.

Python

from confidentai import ConfidentAI

client = ConfidentAI()

org = client.organization()
organization = org.get()
print(organization.id, organization.name)

TypeScript

import { ConfidentAI } from "confidentai";

const client = new ConfidentAI();

const org = client.organization();
const organization = await org.get();
console.log(organization.id, organization.name);

조직 이름 변경 (Rename Your Organization)

조직의 name을 업데이트할 수 있어요.

Python

org = client.organization()
organization = org.update(name="Example Org")

TypeScript

const org = client.organization();
const organization = await org.update({ name: "Example Org" });

다음 단계 (Next Steps)

조직의 리소스를 관리해요:

프로젝트 (Projects)

프로젝트를 만들고, 수정하고, 삭제해요.

멤버와 초대 (Members & Invitations)

멤버를 초대하고 역할을 할당해요.

더 알아보기