KDDIクラウドプラットフォームサービス ナレッジサイト

  • HOME
  • 提供API一覧
  • createSnapshotPolicy

createSnapshotPolicy

処理概要

定期スナップショットの設定を行う

注意事項

週次、月次スナップショットの取得タイミングのパラメータが正常値でないと日次スナップショットが設定される

maxsnapで取得できる値は8世代まで

リクエスト

・リクエストパラメータ

Parameter Name
Description
Required
intervaltype valid values are DAILY, WEEKLY, and MONTHLY true
maxsnaps maximum number of snapshots to retain true
schedule time the snapshot is scheduled to be taken. Format is:* if DAILY, MM:HH* if WEEKLY, MM:HH:DD (1-7)* if MONTHLY, MM:HH:DD (1-28) true
timezone Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format. true
volumeid the ID of the disk volume true
  •  補足

WEEKLY のDDは曜日を示す(日曜~土曜:1~7)

MONTHLYのDDは日付(1~31)

・リクエストサンプル

./kick_api.sh command=createSnapshotPolicy intervaltype=WEEKLY maxsnaps=8 schedule=00:10:6 timezone=JST volumeid=xxxxxxxxxxxxxxxxxxxxxxxxx

レスポンス

・レスポンスボディ

Response Name
Description
id the ID of the snapshot policy
volumeid the interval type of the snapshot policy
schedule maximum number of snapshots retained
intervaltype time the snapshot is scheduled to be taken.
maxsnaps the time zone of the snapshot policy
timezone the ID of the disk volume
  • 補足

インターバルタイプはそれぞれ下記に該当する

DAILY :1

WEEKLY:2

MONTHLY:3

 

・レスポンスサンプル

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
122 368 122 368 0 0 2453 0 –:–:– –:–:– –:–:– 6133
<?xml version=”1.0″ encoding=”UTF-8″?>
<createsnapshotpolicyresponse cloud-stack-version=”4.3.0.2″>
<snapshotpolicy>
<id>ae9a2522-9e12-4baa-b2ca-1dffd17421c0</id>
<volumeid>c851c553-c257-4985-917f-5a36563d731b</volumeid>
<schedule>00:10:6</schedule>
<intervaltype>2</intervaltype>
<maxsnaps>8</maxsnaps>
<timezone>JST</timezone>
</snapshotpolicy>
</createsnapshotpolicyresponse>

提供API一覧

2024/04/23 2024/04/23