Aria Operations のライセンス情報を REST API で取得する方法
search cancel

Aria Operations のライセンス情報を REST API で取得する方法

book

Article ID: 447578

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

免責事項: これは英文の記事 「How to use the REST API to obtain the license of Aria Operations」 の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

本記事は REST API を用いて Aria Operations に割り当てられたライセンス情報を取得する方法を説明します。

Environment

VMware Aria Operations 8.18.x

Resolution

以下の手順に従い curl コマンドを用いてライセンス情報を取得できます。

  1. 以下のPOST リクエストコマンドを実行して API アクセストークンを取得します:
    curl -ks -X POST "https://<Ops-FQDN>/suite-api/api/auth/token/acquire" \
          -H "Accept: application/json" \
          -H "Content-Type: application/json" \
          -d '{"username": "admin", "password": "<PASSWORD>", "authSource": "local"}'

    出力例 ("token" の値がアクセストークンです) :

    {
      "token": "########-####-####-####-######################-####-####-####-############",
      "validity": 1783432729249,
      "expiresAt": "Tuesday, July 7, 2026 at 1:58:49 PM Coordinated Universal Time",
      "roles": []
    }

     

  2.  ヘッダーにトークンを入れてライセンスのエンドポイントに対して以下の GET リクエストコマンドを実行します。

    curl -ks -X GET "https://<Ops-FQDN>/suite-api/api/deployment/licenses" \
           -H "Accept: application/json" \
           -H "Authorization: vRealizeOpsToken <ACCESS TOKEN>"


    手順 1 のトークンを用いた出力例 (jq によるフォーマットを含む):

    $ curl -ks -X GET "https://<Ops-FQDN>/suite-api/api/deployment/licenses" -H "Accept: application/json" -H "Authorization: vRealizeOpsToken ########-####-####-####-######################-####-####-####-############"  | jq
    {
      "solutionLicenses": [
        {
          "id": "0ea44f9a-3635-4883-bc48-1471bab89dfb",
          "productName": "vRealize Operations Manager Evaluation",
          "licenseKey": "Evaluation - VMware vRealize Operations Management Suite",
          "expirationDate": 1786067940532,
          "capacity": "unlimited Virtual Machines",
          "edition": "ENTERPRISE",
          "licenseType": "EVALUATION",
          "statuses": [
            "30 days to expiry",
            "License expires on 8/7/26, 1:59 AM UTC",
            "Only powered on VMs will count towards the license usage"
          ]
        }
      ]
    }