POST api/Packages

Create new package

Request Information

URI Parameters

None.

Body Parameters

PackageCreate
NameDescriptionTypeAdditional information
Name

Package name

string

Required

Description

Package description

string

None.

StorageLimit

In Gb

decimal number

Required

isGlacierRestoreLimit

boolean

Required

RestoreLimit

In Gb

decimal number

None.

Cost

decimal number

Required

GlacierRestoreType

Only for Amazon to Glacier accounts. Notes: 'Standard' = default value. 'No' = Do not restore files from Glacier

GlacierRestoreType

None.

UseRestoreLimit

User restore limit. Default value is 'false'

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "StorageLimit": 3.1,
  "isGlacierRestoreLimit": true,
  "RestoreLimit": 5.1,
  "Cost": 6.0,
  "GlacierRestoreType": 0,
  "UseRestoreLimit": true
}

application/xml, text/xml

Sample:
<PackageCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <Cost>6</Cost>
  <Description>sample string 2</Description>
  <GlacierRestoreType>Standard</GlacierRestoreType>
  <Name>sample string 1</Name>
  <RestoreLimit>5.1</RestoreLimit>
  <StorageLimit>3.1</StorageLimit>
  <UseRestoreLimit>true</UseRestoreLimit>
  <isGlacierRestoreLimit>true</isGlacierRestoreLimit>
</PackageCreate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.