| Required role: | TenantReader |
| PATCH | /api/deployments/generation/resolvedvariables | Resolve variables for a new deployment from template and parent collection | |
|---|---|---|---|
| PATCH | /deployments/generation/resolvedvariables | Resolve variables for a new deployment from template and parent collection |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CoreService.ServiceModel.Dtos.Deployments.Crud
Namespace Global
Namespace CoreService.ServiceModel.Dtos.Deployments.Crud
'''<Summary>
'''Resolve variables for a new deployment from template and parent collection
'''</Summary>
<Api(Description:="Resolve variables for a new deployment from template and parent collection")>
<ApiResponse(Description:="Success", IsDefaultResponse:=true, ResponseType:=GetType(0, Culture=neutral, PublicKeyToken=null]]), StatusCode:=200)>
Public Partial Class ResolveDeploymentVariables
Implements IBaseRequest
Implements IHasTenantName
Implements IPatch
<ApiMember(DataType:="string", IsRequired:=true, ParameterType:="header")>
<Validate(Validator:="NotEmpty")>
Public Overridable Property TenantName As String Implements IHasTenantName.TenantName
'''<Summary>
'''The id of the selected parent collection
'''</Summary>
<ApiMember(DataType:="string", Description:="The id of the selected parent collection", Format:="guid", IsRequired:=true, ParameterType:="body")>
Public Overridable Property CollectionId As Guid
'''<Summary>
'''The id of the selected deployment template
'''</Summary>
<ApiMember(DataType:="string", Description:="The id of the selected deployment template", Format:="guid", IsRequired:=true, ParameterType:="body")>
Public Overridable Property DeploymentTemplateId As Guid
End Class
End Namespace
End Namespace
VB.NET ResolveDeploymentVariables DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /api/deployments/generation/resolvedvariables HTTP/1.1
Host: core.starburst.svc
Accept: application/json
Content-Type: application/json
Content-Length: length
{"tenantName":"String","collectionId":"00000000-0000-0000-0000-000000000000","deploymentTemplateId":"00000000-0000-0000-0000-000000000000","txId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
[{"name":"String","value":"String","type":"String","description":"String","isInherited":false,"environment":"Lab"}]