Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This API adds a resource.

...

Input

Code Block
Type: application/json

Param

Source

Type

Required

Description

env

 body

 string

 yes

 environment code

data 

 body

 object

yes 

 

 name

body.data

 string

 yes

 "pattern": /[a-z0-9]{1,61}/}

 plugged

body.data

 boolean

 yes

 

shared

body.data

boolean

yes

sharedEnvs

body.data

object

no

"patternProperties": {"^[A-Z]+$": {"type": "boolean"}}

{“env_code”: true}

config

body.data

object

yes

type

body.data

enum

yes

['cluster', 'server', 'cdn', 'system', 'authorization', 'other']

category

body.data

string

yes