上一個主題: 租戶 Web 服務參數下一個主題: 支援 Web 服務


建立租戶

使用任何 REST 用戶端,透過租戶 Web 服務建立和配置租戶。

請依循下列步驟:

  1. 透過與 CA Performance Center 伺服器的連線來設定 REST 用戶端。
  2. 輸入 REST 用戶端中 CA Performance Center REST 式 Web 服務 API 的 URL。 使用下列格式:
    http://CA Performance Center 伺服器 IP 位址:8181/pc
    /center/webservice/tenants/
    
  3. 選取 POST 做為「HTTP」方法。
  4. 提供對 CA Performance Center 具有全域系統管理員存取權之使用者帳戶的有效使用者名稱與密碼。
  5. 選取「application/xml」做為 Body 設定中的「Body Content-type」。
  6. 在「Body」文字區段中新增下列 XML:
    <tenant>
      <tenantName>租戶的名稱</tenantName>
      <tenantDesc>租戶的說明</tenantDesc>
      <accountIdentifier>此租戶的唯一字串</accountIdentifier>
      <status>{activated or disabled}</status>
      <removable>{true or false}</removable>
      <theme>{CA-Blue or CA-Gray}</theme>
      <defaultCulture>culture</defaultCulture>
    </tenant>
    
  7. 以您要用於新租戶的值取代任何值。

    例如,提供下列參數:

    <tenant>
      <tenantName>John Doe</tenantName>
      <tenantDesc>John Doe Corporation 租戶</tenantDesc>
      <accountIdentifier>JD1234</accountIdentifier>
      <status>Enabled</status>
      <removable>false</removable>
      <theme>CA-Blue</theme>
      <defaultCulture>en-US</defaultCulture>
    </tenant>
    

    如需租戶參數的詳細資訊,請參閱租戶服務範例語法

  8. 執行此方法。
  9. 重複執行上述步驟,直到您已建立所需的租戶個數為止。