개발자는 API를 사용하여 VMware Aria Operations의 대화형 클라이언트를 구축할 수 있습니다. API는 REST 스타일을 따르며 라이센스가 부여된 모든 사용자가 사용할 수 있습니다.

프로시저

  1. 인증된 API 연결을 생성할 때 Cloud Services 도구 모음에서 API 토큰을 생성하여 본인을 인증합니다. API 토큰 생성을 참조하십시오.
  2. API 토큰을 사용하여 Cloud Services API를 호출하고 Cloud Services 인증 토큰을 생성합니다.
    curl -k -X POST "https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "refresh_token={CSP API Token}”
    그러면 access_tokenCloud Services 인증 토큰인 다음과 같은 구조의 JSON 문자열이 반환됩니다.
             {
                "id_token",
                "token_type",
                "expires_in",
                "scope",
                "access_token",
                "refresh_token”
             }
    
    참고: Cloud Services 인증 토큰은 생성 후 30분 동안에만 유효합니다.