Chrome Management 고객 구독 API의 코드 샘플

API 기능 개요는 고객 요금제 API를 참고하세요.

이 페이지의 모든 요청은 다음 변수를 사용합니다.

  • $TOKEN - OAuth2 토큰
  • $CUSTOMER - 고객 ID (예: C01234567) 또는 리터럴 my_customer

고객 요금제 정보 가져오기

고객의 집계된 요금제 및 라이선스 정보를 가져옵니다.

요청

curl -H "Authorization: Bearer $TOKEN" \
https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/subscriptionInfo

my_customer 별칭을 사용하여 호출자의 자체 도메인에 대한 요금제 정보를 가져올 수도 있습니다.

curl -H "Authorization: Bearer $TOKEN" \
https://chromemanagement.googleapis.com/v1/customers/my_customer/subscriptionInfo

응답

{
  "name": "customers/$CUSTOMER/subscriptionInfo",
  "chromeEnterpriseUpgradeAnnual": {
    "counts": {
      "totalPurchasedCount": "300",
      "assignedCount": "3",
      "unassignedCount": "297"
    },
    "subscriptionEndTime": "2027-08-15T12:00:00Z"
  },
  "kioskSignageUpgradeAnnual": {
    "counts": {
      "totalPurchasedCount": "10",
      "assignedCount": "4",
      "unassignedCount": "6"
    },
    "subscriptionEndTime": "2027-08-15T12:00:00Z"
  },
  "chromePerpetualUpgrade": {
    "counts": {
      "totalPurchasedCount": "10",
      "assignedCount": "10",
      "unassignedCount": "0"
    },
    "retiredCount": "2",
    "conditionallyAvailableCount": "2"
  }
}