Enrollmenttokens: create

엔터프라이즈의 등록 토큰을 만듭니다. 이 메서드는 EnrollmentTokensService의 일부입니다.

요청

HTTP 요청

POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/enrollmentTokens

매개변수

매개변수 이름 설명
경로 매개변수
enterpriseId string 엔터프라이즈의 ID입니다.

승인

다음 범위를 사용하여 이 요청을 인증받아야 합니다.

범위
https://www.googleapis.com/auth/androidenterprise

자세한 내용은 인증 및 승인 페이지를 참고하세요.

요청 본문

요청 본문에 다음과 같은 구조의 데이터를 제공합니다.

{
  "kind": "androidenterprise#enrollmentToken",
  "token": string,
  "enrollmentTokenType": string,
  "duration": {
    "seconds": long,
    "nanos": integer
  },
  "googleAuthenticationOptions": {
    "authenticationRequirement": string,
    "requiredAccountEmail": string
  }
}
속성 이름 설명 참고
kind string
token string 기기에 전달되어 기기 등록을 승인하는 토큰 값입니다. 서버에서 생성된 읽기 전용 필드입니다.
enrollmentTokenType string [필수] 등록 토큰의 유형입니다.

허용되는 값은 다음과 같습니다.
  • "enrollmentTokenTypeUnspecified"
  • "userDevice"
  • "userlessDevice"
duration nested object [선택사항] 등록 토큰이 유효한 기간입니다. 1분에서 Durations.MAX_VALUE(약 10,000년) 사이의 값입니다. 지정하지 않으면 기본 기간은 1시간입니다.
duration.seconds long 시간 범위의 부호가 있는 초입니다.
googleAuthenticationOptions nested object [선택사항] 등록 중에 Google 인증과 관련된 옵션을 제공합니다.
googleAuthenticationOptions.authenticationRequirement string [선택사항] 등록 중에 사용자가 Google로 인증해야 하는지 여부를 지정합니다. 제공된 경우 기기가 이 토큰으로 등록될 때 엔터프라이즈 리소스GoogleAuthenticationSettings를 재정의합니다.

허용되는 값은 다음과 같습니다.
  • "authenticationRequirementUnspecified"
  • "optional"
  • "required"
googleAuthenticationOptions.requiredAccountEmail string [선택사항] 등록 중에 사용자가 사용해야 하는 관리 Google 계정을 지정합니다. 이 필드가 설정된 경우 AuthenticationRequirementREQUIRED로 설정해야 합니다.

응답

요청에 성공할 경우 이 메소드는 다음과 같은 구조의 응답 본문을 반환합니다.

{
  "kind": "androidenterprise#enrollmentToken",
  "token": string,
  "enrollmentTokenType": string,
  "duration": {
    "seconds": long,
    "nanos": integer
  },
  "googleAuthenticationOptions": {
    "authenticationRequirement": string,
    "requiredAccountEmail": string
  }
}
속성 이름 설명 참고
kind string
token string 기기에 전달되어 기기 등록을 승인하는 토큰 값입니다. 서버에서 생성된 읽기 전용 필드입니다.
enrollmentTokenType string [필수] 등록 토큰의 유형입니다.

허용되는 값은 다음과 같습니다.
  • "enrollmentTokenTypeUnspecified"
  • "userDevice"
  • "userlessDevice"
duration nested object [선택사항] 등록 토큰이 유효한 기간입니다. 1분에서 Durations.MAX_VALUE(약 10,000년) 사이의 값입니다. 지정하지 않으면 기본 기간은 1시간입니다.
duration.seconds long 시간 범위의 부호가 있는 초입니다.
googleAuthenticationOptions nested object [선택사항] 등록 중에 Google 인증과 관련된 옵션을 제공합니다.
googleAuthenticationOptions.authenticationRequirement string [선택사항] 등록 중에 사용자가 Google로 인증해야 하는지 여부를 지정합니다. 이 설정이 지정된 경우 이 토큰으로 등록된 기기에는 엔터프라이즈 리소스에 지정된 GoogleAuthenticationSettings가 무시됩니다.

허용되는 값은 다음과 같습니다.
  • "authenticationRequirementUnspecified"
  • "optional"
  • "required"
googleAuthenticationOptions.requiredAccountEmail string [선택사항] 등록 중에 사용자가 사용해야 하는 관리 Google 계정을 지정합니다.AuthenticationRequirementREQUIRED if this field is set.로 설정해야 합니다.