이제 Google 클래스룸 부가기능이 일반적으로 개발자에게 제공됩니다. 자세한 내용은
부가기능 문서를 참고하세요.
REST Resource: courses.aliases
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
리소스: CourseAlias
과정의 대체 식별자입니다.
별칭은 수업을 고유하게 식별합니다. 다음 범위 중 하나 내에서 고유해야 합니다.
domain: 도메인 범위 별칭은 별칭 생성자의 도메인 내 모든 사용자에게 표시되며 도메인 관리자만 만들 수 있습니다. 도메인 범위 별칭은 과정에 클래스룸 외부의 식별자가 있는 경우에 자주 사용됩니다.
project: 프로젝트 범위 별 별칭은 별칭을 만든 Developer Console 프로젝트 ID를 사용하는 애플리케이션의 모든 요청에 표시되며 모든 프로젝트에서 만들 수 있습니다. 프로젝트 범위 별 별칭은 애플리케이션에 대체 식별자가 있는 경우에 자주 사용됩니다. 전송 실패 시 중복 과정을 방지하기 위해 임의의 값을 사용할 수도 있습니다. 요청을 다시 시도하면 이전 요청이 성공한 경우 ALREADY_EXISTS
이 반환되기 때문입니다.
JSON 표현 |
{
"alias": string
} |
필드 |
alias |
string
별칭 문자열입니다. 문자열의 형식은 원하는 별칭 범위를 나타냅니다.
d:<name> 는 도메인 범위 별칭을 나타냅니다. 예를 들면 d:math_101 입니다.
p:<name> 는 프로젝트 범위 별칭을 나타냅니다. 예를 들면 p:abc123 입니다.
이 필드의 최대 길이는 256자(영문 기준)입니다.
|
메서드 |
|
강의의 별칭을 만듭니다. |
|
과정의 별칭을 삭제합니다. |
|
과정의 별칭 목록을 반환합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# REST Resource: courses.aliases\n\n- [Resource: CourseAlias](#CourseAlias)\n - [JSON representation](#CourseAlias.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: CourseAlias\n---------------------\n\nAlternative identifier for a course.\n\nAn alias uniquely identifies a course. It must be unique within one of the following scopes:\n\n- domain: A domain-scoped alias is visible to all users within the alias creator's domain and can be created only by a domain admin. A domain-scoped alias is often used when a course has an identifier external to Classroom.\n\n- project: A project-scoped alias is visible to any request from an application using the Developer Console project ID that created the alias and can be created by any project. A project-scoped alias is often used when an application has alternative identifiers. A random value can also be used to avoid duplicate courses in the event of transmission failures, as retrying a request will return `ALREADY_EXISTS` if a previous one has succeeded.\n\n| JSON representation |\n|-----------------------------|\n| ``` { \"alias\": string } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `alias` | `string` Alias string. The format of the string indicates the desired alias scoping. - `d:\u003cname\u003e` indicates a domain-scoped alias. Example: `d:math_101` - `p:\u003cname\u003e` indicates a project-scoped alias. Example: `p:abc123` This field has a maximum length of 256 characters. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------|-----------------------------------------|\n| ### [create](/workspace/classroom/reference/rest/v1/courses.aliases/create) | Creates an alias for a course. |\n| ### [delete](/workspace/classroom/reference/rest/v1/courses.aliases/delete) | Deletes an alias of a course. |\n| ### [list](/workspace/classroom/reference/rest/v1/courses.aliases/list) | Returns a list of aliases for a course. |"]]