Create a managed service
POSThttps://api.cloud.codenow.com/managed-services
The operation allows you to create a new managed service.Managed services are specialized resources provided and maintained by CodeNOW designed to streamline and handle specific functions.
Request
Header Parameters
CodeNOW API Key
- application/vnd.codenow.v1+json
Body
required
Possible values: >= 3 characters
and <= 30 characters
The user-friendly name or label for the service. It allows users to provide a clear and descriptive name that helps in identifying and distinguishing different services easily. The field accepts free text with alphanumeric and special characters.
CodeNOW will generate an ID for the service based on this name.
The detailed textual description of the service. Allows users to add additional context, notes, or any relevant information about the purpose, usage, or characteristics of the service.
template
object
required
Possible values: non-empty
The unique identifier of the environment where the service will be deployed. To obtain this identifier, use the GET /environments
operation to retrieve a list of available environments.
accessControl
object
required
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Managed service detail
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
The user-friendly name or label for the service. It allows users to provide a clear and descriptive name that helps in identifying and distinguishing different services easily. The field accepts free text with alphanumeric and special characters.
The detailed textual description of the service. Allows users to add additional context, notes, or any relevant information about the purpose, usage, or characteristics of the service.
The username of the user who initialized the creation of the service.
An internal identifier of the scaffold used for service creation. It also provides information about the type or brand of the service.
The version of the scaffold used for service creation.
The unique identifier of the environment where the service will be deployed. To obtain this identifier, use the GET /environments
operation to retrieve a list of available environments.
The service type by management with two possible values: MANAGED
for a service provided and managed by CodeNOW, or ENTERPRISE
for a service managed by the customer outside of CodeNOW.
{
"id": "string",
"displayName": "string",
"description": "string",
"createdBy": "string",
"templateId": "string",
"templateVersion": "string",
"environmentId": "string",
"type": "string"
}
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.
- curl
- nodejs
- csharp
- java
- CURL
curl -L 'https://api.cloud.codenow.com/managed-services' \
-H 'Content-Type: application/vnd.codenow.v1+json' \
-H 'Accept: application/vnd.codenow.v1+json' \
-d '{
"name": "string",
"description": "string",
"template": {
"id": "string",
"version": "string",
"properties": {}
},
"environmentId": "string",
"accessControl": {
"unlimited": true,
"allowFrom": [
"string"
]
}
}'