Add a base resource to an environment

Request

PUT https://{hostname}:{port}
    /cli/environment/addBaseResource?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
environment string true Name or ID of the environment
application string false Name of the application; this value is required if you specify the environment name instead of ID
resource string true Path or ID of the resource to add
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true

Example

curl -k -u jsmith:passwd 
   
  "https://deployserver.example.com:8443/cli/environment/addBaseResource
  ?application=MyApplication&environment=MyEnvironment&resource=/agents/agent1" -X PUT

Related CLI command: addEnvironmentBaseResource.