GET/sharedrives/{sharedriveId}/link-setting

공용 드라이브(공용 폴더)의 링크 생성 시 필요한 링크 설정값을 조회한다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/sharedrives/{sharedriveId}/link-setting

Path Parameters

ParameterTypeDescription
sharedriveId string 

공용 드라이브 ID


required
example : @2101000000000008 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
enabledOrganizationAccessType boolean 

접근 타입이 ORGANIZATION인 링크 생성 가능 여부

 
enabledSpecificPeopleAccessType boolean 

접근 타입이 SPECIFIC_PEOPLE인 링크 생성 가능 여부

 
enabledAnyoneAccessType boolean 

접근 타입이 ANYONE인 링크 생성 가능 여부

 
maxLinkRetentionDays integer 

링크 최대 유효 일수. 링크 생성, 수정 시 expirationTime값은 maxLinkRetentionDays값 이하로만 지정할 수 있다.

  • -1: 만료일 없음
  • 7: 7일
  • 30: 30일
  • 90: 90일
  • 180: 180일

Allowed values : -1, 7, 30, 90, 180 

Response Example

example

1{2  "enabledOrganizationAccessType": true,3  "enabledSpecificPeopleAccessType": true,4  "enabledAnyoneAccessType": false,5  "maxLinkRetentionDays": 306}