ページの先頭行へ戻る
ServerView Resource Orchestrator Cloud Edition V3.2.0 リファレンスガイド (コマンド/XML編)
FUJITSU Software

14.1.9 ListServerType (L-Serverテンプレート一覧を取得)

名前

【Windowsマネージャー】
インストールフォルダー\RCXCFMG\bin\ListServerType - L-Serverテンプレート一覧を取得

【Linuxマネージャー】
/opt/FJSVcfmg/bin/ListServerType.sh - L-Serverテンプレート一覧を取得

形式

【Windowsマネージャー】

ListServerType -version バージョンID -locale 言語コード -userId ユーザーID -password パスワード -orgId テナント名

【Linuxマネージャー】

ListServerType.sh -version バージョンID -locale 言語コード -userId ユーザーID -password パスワード -orgId テナント名

機能説明

仮想データセンター内にあるサーバイメージタイプの一覧を取得します。

オプション

-version

L-Platform APIのバージョンIDを指定します。

-locale

L-Platform APIと通信するための言語を指定します。

-userId

L-Platform APIを実行するユーザーIDを指定します。

-password

L-Platform APIを実行するユーザーIDのパスワードを指定します。

-orgId

L-Platform APIを実行するユーザーのテナント名を指定します。

必要な権限・実行環境

権限

OSの管理者権限をもつユーザー

実行環境

管理サーバ

使用例

【Windowsマネージャー】
> ListServerType -version 2.0 -locale ja -userId user3 -password password -orgId tenantA
<?xml version="1.0" encoding="UTF-8"?>
<ListServerTypeResponse xmlns="http://cfmg.systemwalker.jp.fujitsu.com">
  <responseMessage>PAPI00000 Processing was completed.</responseMessage>
  <responseStatus>SUCCESS</responseStatus>
  <servertypes>
    <servertype>
      <comment>comment1</comment>
      <cpu>
        <cpuArch>IA</cpuArch>
        <cpuPerf>2.6</cpuPerf>
        <cpuReserve>0.0</cpuReserve>
        <cpuShare>1000</cpuShare>
        <numOfCpu>4</numOfCpu>
      </cpu>
      <disks>
        <disk>
          <diskIndex>0</diskIndex>
          <diskSize>100</diskSize>
        </disk>
      </disks>
      <id>template-0001</id>
      <label>vmware-template-1</label>
      <lserverType>Virtual</lserverType>
      <memory>
        <memoryReserve>8</memoryReserve>
        <memoryShare>81920</memoryShare>
        <memorySize>8</memorySize>
      </memory>
      <name>High_Performance</name>
      <nics>
        <numOfNIC>1</numOfNIC>
      </nics>
      <serverPolicy>
        <positioning>Fixed</positioning>
        <redundancy>None</redundancy>
        <repurpose>true</repurpose>
      </serverPolicy>
      <vmType>VMware</vmType>
    </servertype>
    <servertype>
      <comment>comment2</comment>
      <cpu>
        <cpuArch>IA</cpuArch>
        <cpuPerf>2.0</cpuPerf>
        <numOfCpu>2</numOfCpu>
      </cpu>
      <disks>
        <disk>
          <diskIndex>0</diskIndex>
          <diskSize>100</diskSize>
        </disk>
      </disks>
      <id>template-0002</id>
      <label>physical-template-2</label>
      <lserverType>Physical</lserverType>
      <memory>
        <memorySize>4</memorySize>
      </memory>
      <name>Middle_Spec</name>
      <nics>
        <numOfNIC>1</numOfNIC>
      </nics>
      <serverPolicy>
        <aliveMonitoring>false</aliveMonitoring>
        <positioning>Fixed</positioning>
        <redundancy>HA</redundancy>
        <repurpose>false</repurpose>
      </serverPolicy>
    </servertype>
  </servertypes>
</ListServerTypeResponse>
【Linuxマネージャー】
# ListServerType.sh -version 2.0 -locale ja -userId user3 -password password -orgId tenantA
<?xml version="1.0" encoding="UTF-8"?>
<ListServerTypeResponse xmlns="http://cfmg.systemwalker.jp.fujitsu.com">
  <responseMessage>PAPI00000 Processing was completed.</responseMessage>
  <responseStatus>SUCCESS</responseStatus>
  <servertypes>
    <servertype>
      <comment>comment1</comment>
      <cpu>
        <cpuArch>IA</cpuArch>
        <cpuPerf>2.6</cpuPerf>
        <cpuReserve>0.0</cpuReserve>
        <cpuShare>1000</cpuShare>
        <numOfCpu>4</numOfCpu>
      </cpu>
      <disks>
        <disk>
          <diskIndex>0</diskIndex>
          <diskSize>100</diskSize>
        </disk>
      </disks>
      <id>template-0001</id>
      <label>vmware-template-1</label>
      <lserverType>Virtual</lserverType>
      <memory>
        <memoryReserve>8</memoryReserve>
        <memoryShare>81920</memoryShare>
        <memorySize>8</memorySize>
      </memory>
      <name>High_Performance</name>
      <nics>
        <numOfNIC>1</numOfNIC>
      </nics>
      <serverPolicy>
        <positioning>Fixed</positioning>
        <redundancy>None</redundancy>
        <repurpose>true</repurpose>
      </serverPolicy>
      <vmType>VMware</vmType>
    </servertype>
    <servertype>
      <comment>comment2</comment>
      <cpu>
        <cpuArch>IA</cpuArch>
        <cpuPerf>2.0</cpuPerf>
        <numOfCpu>2</numOfCpu>
      </cpu>
      <disks>
        <disk>
          <diskIndex>0</diskIndex>
          <diskSize>100</diskSize>
        </disk>
      </disks>
      <id>template-0002</id>
      <label>physical-template-2</label>
      <lserverType>Physical</lserverType>
      <memory>
        <memorySize>4</memorySize>
      </memory>
      <name>Middle_Spec</name>
      <nics>
        <numOfNIC>1</numOfNIC>
      </nics>
      <serverPolicy>
        <aliveMonitoring>false</aliveMonitoring>
        <positioning>Fixed</positioning>
        <redundancy>HA</redundancy>
        <repurpose>false</repurpose>
      </serverPolicy>
    </servertype>
  </servertypes>
</ListServerTypeResponse>

終了ステータス

以下の終了ステータスが返されます。

0

正常に処理されました。

0以外

エラーが発生しました。