Skip to main content

create-asset

restish dci create-asset [flags]

Creates a new asset.

Flags

--type: (string default:"amazon-web-services")

--mode: (string default:"New")

--account-name: (string default:"Account name")

--root-email: (string)

Responses

200 (application/json)

OK - The request succeeded.

{
"type": "object",
"properties": {
"accountID": {
"type": "string"
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: create-asset, createasset