CreateStoragePolicy (v2)
- Kiss, Mate
Owned by Kiss, Mate
Jul 31, 2018
8 min read
Loading data...
Overview
Creates a new Storage Policy.The function is available as a Web Service request.
Request
Parameters of the API request:
Parameter | Type | Description | Requirements |
---|---|---|---|
token | String | API authentication token | Mandatory |
storagePolicy | StoragePolicy | Storage folder filter | Mandatory |
Response
Parameters of the API response:
Parameter | Type | Description |
---|---|---|
status | Status | Possible return values:
|
storagePolicy | StoragePolicy |
Examples
Example CreateStoragePolicy transaction.
Example CreateStoragePolicy transaction.
Request <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.provisioning.ws.web.verba.com/"> <soapenv:Header/> <soapenv:Body> <v2:createStoragePolicy> <token>n6nxbbGLZjFwpgGNubnS54f0FjZbkCjl</token> <storagePolicy> <action>export</action> <callFilter>WHERE section.owner_eid = '0000'</callFilter> <customSql>false</customSql> <decrypt>1</decrypt> <eid>0000</eid> <enabled>1</enabled> <engineId></engineId> <firstTranscode>0</firstTranscode> <format></format> <keepCdr>1</keepCdr> <languageId></languageId> <moveToRecycleBin>0</moveToRecycleBin> <name>Test Data Retention</name> <olderThanMinutes>0</olderThanMinutes> <olderThanYears>0</olderThanYears> <onlyForArchived>0</onlyForArchived> <priority>33</priority> <storageFolder> <id>2</id> </storageFolder> </storagePolicy> </v2:createStoragePolicy> </soapenv:Body> </soapenv:Envelope> Response: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:createStoragePolicyResponse xmlns:ns2="http://v2.provisioning.ws.web.verba.com/"> <return> <status> <statusCode>OK</statusCode> </status> <storagePolicy> <action>export</action> <callFilter>WHERE section.owner_eid = '0000'</callFilter> <customSql>false</customSql> <decrypt>true</decrypt> <eid>0000</eid> <enabled>true</enabled> <engineId/> <firstTranscode>false</firstTranscode> <format></format> <id>1036</id> <keepCdr>true</keepCdr> <languageId/> <moveToRecycleBin>false</moveToRecycleBin> <name>Test Data Retention</name> <olderThanMinutes>0</olderThanMinutes> <olderThanYears>0</olderThanYears> <onlyForArchived>false</onlyForArchived> <priority>33</priority> <storageFolder> <certPublic/> <eid>0000</eid> <emailTls>false</emailTls> <exportTarget>false</exportTarget> <exportTargetEveryone>true</exportTargetEveryone> <id>2</id> <name>Amazon S3 TEST</name> <path>verbatest</path> <serverName>eu-west-1</serverName> <storageType>amazon_s3</storageType> <userLogin>AKIAIDR3I26OLTLTJVKA</userLogin> <userPassword>HR3Q74zh93GiU/T0FTFm0syhdfZereaIVLaZxuDN/drsOKVb2CuUBjoK8LeDn0ab</userPassword> </storageFolder> </storagePolicy> </return> </ns2:createStoragePolicyResponse> </S:Body> </S:Envelope>
Example CreateStoragePolicy transaction. Transcode to mp3.
Example CreateStoragePolicy transaction. Transcode to mp3.
Request <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://v2.provisioning.ws.web.verba.com/"> <soapenv:Header/> <soapenv:Body> <v2:createStoragePolicy> <token>n6nxbbGLZjFwpgGNubnS54f0FjZbkCjl</token> <storagePolicy> <action>export</action> <callFilter>WHERE section.owner_eid = '0000'</callFilter> <customSql>false</customSql> <decrypt>1</decrypt> <eid>0000</eid> <enabled>1</enabled> <engineId></engineId> <firstTranscode>0</firstTranscode> <format>mp3</format> <keepCdr>1</keepCdr> <languageId></languageId> <moveToRecycleBin>0</moveToRecycleBin> <name>Test Data Retention</name> <olderThanMinutes>0</olderThanMinutes> <olderThanYears>0</olderThanYears> <onlyForArchived>0</onlyForArchived> <priority>33</priority> <storageFolder> <id>2</id> </storageFolder> </storagePolicy> </v2:createStoragePolicy> </soapenv:Body> </soapenv:Envelope> Response: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:createStoragePolicyResponse xmlns:ns2="http://v2.provisioning.ws.web.verba.com/"> <return> <status> <statusCode>OK</statusCode> </status> <storagePolicy> <action>export</action> <callFilter>WHERE section.owner_eid = '0000'</callFilter> <customSql>false</customSql> <decrypt>true</decrypt> <eid>0000</eid> <enabled>true</enabled> <engineId/> <firstTranscode>false</firstTranscode> <format>mp3</format> <id>1036</id> <keepCdr>true</keepCdr> <languageId/> <moveToRecycleBin>false</moveToRecycleBin> <name>Test Data Retention</name> <olderThanMinutes>0</olderThanMinutes> <olderThanYears>0</olderThanYears> <onlyForArchived>false</onlyForArchived> <priority>33</priority> <storageFolder> <certPublic/> <eid>0000</eid> <emailTls>false</emailTls> <exportTarget>false</exportTarget> <exportTargetEveryone>true</exportTargetEveryone> <id>2</id> <name>Amazon S3 TEST</name> <path>verbatest</path> <serverName>eu-west-1</serverName> <storageType>amazon_s3</storageType> <userLogin>AKIAIDR3I26OLTLTJVKA</userLogin> <userPassword>HR3Q74zh93GiU/T0FTFm0syhdfZereaIVLaZxuDN/drsOKVb2CuUBjoK8LeDn0ab</userPassword> </storageFolder> </storagePolicy> </return> </ns2:createStoragePolicyResponse> </S:Body> </S:Envelope>