AddImageStoreBackupStorage
AddImageStoreBackupStorage
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
hostnameStringRequiredThe hostname of the ImageStore backup storage.
usernameStringRequiredThe SSH username of the backup storage. This parameter is used to deploy Ansible.
passwordStringRequiredThe SSH password of the ImageStore backup storage.
sshPortintOptional. The SSH port of the ImageStore backup storage.
urlStringRequiredThe path for storing local data in the ImageStore backup storage.
nameStringRequiredThe name of the ImageStore backup storage.
descriptionStringOptional. The description of the ImageStore backup storage.
typeStringOptional. The backup storage type: ImageStoreBackupStorage.
importImagesbooleanOptional. Whether to import images.
resourceUuidStringOptional. The resource UUID. If specified, the ImageStore backup storage will use this field as the UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/backup-storage/image-store
/zstack/v1/backup-storage/image-store
Request Example
curl -X POST 'http://{host}/zstack/v1/backup-storage/image-store' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"hostname":"<hostname>","username":"<username>","password":"<password>","sshPort":1,"url":"<url>","name":"<name>","description":"<description>","type":"<type>","importImages":true,"resourceUuid":"<resourceUuid>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}}'
Response Example
200{}Change History
This API has no change history records yet.
