Description: Update deployments
URL: http://{your-server-url}/api/v2/core/software/packages/deployments
Method: PUT
Token Required: True
token: {token}
content-type: application/json or content-type: application/xml
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Software.SoftwareRequest
Parameter | Type | Nullable |
---|---|---|
Request.Deployments | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Software.Deployment[] |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Software.SoftwareResponse
Parameter | Type |
---|---|
Response.Deployments | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Software.Deployment[] |
Field | Name | Values |
---|---|---|
ResourceScope | Nexus.AppSpace.Service.Contract.Model.Enums.Resource.Scope | Undefined = 0, Portal = 1, Account_Groups = 2, Accounts = 3, Networks = 4, Applications = 5, Players = 6, User_Groups = 7, Users = 8, Zones = 9, DataSources = 10, ContentSize = 11, Server = 12, Content = 13, Campaign = 14, Client = 15, Site = 16, Widget = 17, LayoutSchedule = 18, CampaignEntity = 19, ContentFolders = 20, Layouts = 21, MediaZone = 22, Player_Groups = 23, Space = 24 |
Status | Nexus.AppSpace.Service.Contract.Model.Enums.Software.Status | Undefined = 0, Stable = 1, Beta = 2, Not_Good = 3 |
<SoftwareRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Software" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Deployments xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Software"> <a:Deployment> <a:Enabled>true</a:Enabled> <a:Id>123</a:Id> <a:NetworkId>123</a:NetworkId> <a:ResourceId>123</a:ResourceId> <a:ResourceScope>Space</a:ResourceScope> <a:SoftwarePackageId>123</a:SoftwarePackageId> <a:Status>Not_Good</a:Status> </a:Deployment> </Deployments> </SoftwareRequest>
{ "Deployments":[ { "Enabled":true, "Id":123, "NetworkId":123, "ResourceId":123, "ResourceScope":24, "SoftwarePackageId":123, "Status":3 } ] }
<SoftwareResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Software" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage> <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages"> <Error> <Code>String</Code> <Message>String</Message> <StackTrace>String</StackTrace> </Error> </Errors> <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status> <Deployments xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Software"> <a:Deployment> <a:CreatedDate>2015-08-25T17:54:28.8537653Z</a:CreatedDate> <a:Enabled>true</a:Enabled> <a:Id>123</a:Id> <a:NetworkId>123</a:NetworkId> <a:ResourceId>123</a:ResourceId> <a:ResourceScope>Space</a:ResourceScope> <a:SoftwarePackageId>123</a:SoftwarePackageId> <a:Status>Not_Good</a:Status> </a:Deployment> </Deployments> </SoftwareResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1, "Deployments":[ { "CreatedDate":"\/Date(1440525268853)\/", "Enabled":true, "Id":123, "NetworkId":123, "ResourceId":123, "ResourceScope":24, "SoftwarePackageId":123, "Status":3 } ] }