POST - /registry/resource

Description

This API adds a resource.


Input

Type: application/json

Param

Source

Type

Required

Description

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