Create Resource

Create Resource

Returns the resource request response.

Request
URI
POST
https://{api_host}/deployment/api/resources
COPY
Request Body
ResourceSpecification of type(s) application/json
Required

Show optional properties

{
    "name": "string",
    "type": "string"
}
{
    "deploymentId": "string",
    "name": "string",
    "projectId": "string",
    "properties": {
        "properties": {}
    },
    "type": "string"
}
string
deploymentId
Optional

Resource deployment id

string
name
Required
Constraints: maxLength: 900

Name of the resource

string
projectId
Optional

Resource project id

object
properties
Optional

Resource properties

string
type
Required

Type of the resource

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns ResourceRequestResponse of type(s) application/json
"ResourceRequestResponse Object"
string As uuid As uuid
deploymentId
Optional

Identifier of the requested deployment id to which the request applies to

string
projectId
Optional

Project identifier

string As uuid As uuid
requestId
Optional

Request identifier

string
resourceId
Optional

Resource ID


401

Unauthorized

Returns ResourceRequestResponse of type(s) application/json
"ResourceRequestResponse Object"
string As uuid As uuid
deploymentId
Optional

Identifier of the requested deployment id to which the request applies to

string
projectId
Optional

Project identifier

string As uuid As uuid
requestId
Optional

Request identifier

string
resourceId
Optional

Resource ID


403

Forbidden

Returns ResourceRequestResponse of type(s) application/json
"ResourceRequestResponse Object"
string As uuid As uuid
deploymentId
Optional

Identifier of the requested deployment id to which the request applies to

string
projectId
Optional

Project identifier

string As uuid As uuid
requestId
Optional

Request identifier

string
resourceId
Optional

Resource ID


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","type:"string"}' https://{api_host}/deployment/api/resources