...
- uid - Server on which the archive is created;
- units - properties;
- storage_type - archive type: 0 - old archive type; 1 - old new archive type (object archive). If the parameter is not explicitly specified, then a standard an archive of old type is created.
Creating an archive volume
...
Parameter | Required | Description |
---|
schema | Yes | Volume type. Possible values: file - local archive on the Server; smb - network archive with an SMB protocol connection; azure - archive in Microsoft Azure cloud storage. |
Parameters for the file type: |
path | Yes | The path to the file/disk with the archive. |
Parameters for the smb type: |
host | Yes | Name of the server with network repository. |
smb_share | Yes | Network repository. |
path | Yes | Folder in network repository, where the archive will be stored. |
smb_domain | No | Network repository domain. |
user | No | User name. |
password | No | Password. |
Parameters for the azure type: |
protocol | Yes | Connection protocol: HTTP or HTTPS. |
host | Yes | Azure server address. |
access_key | Yes | Access key in base64. |
container | Yes | Azure container. |
user | Yes | User name. |
path | No | Location of the volume folder in Azure. |
port | No | Azure server port. |
Example of creating local archivean object archive as files on a local disk:
Expand |
---|
Code Block |
---|
{
"method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
"data": {
"added": [
{
"uid": "hosts/Server1/MultimediaStorage.AliceBlue",
"units": [
{
"type": "ArchiveVolume",
"properties": [
{
"id": "connection_params",
"properties": [
{
"id": "schema",
"value_string": "file"
},
{
"id": "path",
"value_string": "D:/archiveCrimson1"
}
]
},
{
"id": "label",
"value_string": "Test archive"
},
{
"id": "volume_size_gb",
"value_uint64": 4
}
]
}
]
}
],
"changed": [],
"removed": []
}
} |
|
Example of creating an object archive on a network archiveresource:
Expand |
---|
Code Block |
---|
{
"method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
"data": {
"added": [
{
"uid": "hosts/Server1/MultimediaStorage.AliceBlue",
"units": [
{
"type": "ArchiveVolume",
"properties": [
{
"id": "connection_params",
"properties": [
{
"id": "schema",
"value_string": "smb"
},
{
"id": "host",
"value_string": "qa-t39"
},
{
"id": "smb_share",
"value_string": "incoming"
},
{
"id": "path",
"value_string": "video"
},
{
"id": "user",
"value_string": "QA"
},
{
"id": "password",
"value_string": "QA_TEST"
}
]
},
{
"id": "label",
"value_string": "Test archive"
},
{
"id": "volume_size_gb",
"value_uint64": 4
},
{
"id": "format",
"value_bool": true
}
]
}
]
}
],
"changed": [],
"removed": []
}
} |
|
Example of creating cloud an object archive in Microsoft Azure:
Expand |
---|
Code Block |
---|
{
"method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
"data": {
"added": [
{
"uid": "hosts/Server1/MultimediaStorage.AliceBlue",
"units": [
{
"type": "ArchiveVolume",
"properties": [
{
"id": "connection_params",
"properties": [
{
"id": "schema",
"value_string": "azure"
},
{
"id": "protocol",
"value_string": "http"
},
{
"id": "host",
"value_string": "127.0.0.1"
},
{
"id": "port",
"value_string": "10000"
},
{
"id": "access_key",
"value_string": "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
},
{
"id": "container",
"value_string": "container"
},
{
"id": "user",
"value_string": "devstoreaccount1"
},
{
"id": "path",
"value_string": "/devstoreaccount1"
}
]
},
{
"id": "label",
"value_string": "Test archive"
},
{
"id": "volume_size_gb",
"value_uint64": 20
},
{
"id": "format",
"value_bool": true
}
]
}
]
}
],
"changed": [],
"removed": []
}
} |
|
...