Method: organizations.environments.addonsConfig.setAddonEnablement

Updates an add-on enablement status of an environment.

HTTP request

POST https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/addonsConfig}:setAddonEnablement

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Name of the add-ons config. Must be in the format of /organizations/{org}/environments/{env}/addonsConfig

Request body

The request body contains data with the following structure:

JSON representation
{

  // Union field addon_enablement can be only one of the following:
  "analyticsEnabled": boolean,
  "apiSecurityEnabled": boolean
  // End of list of possible types for union field addon_enablement.
}
Fields
Union field addon_enablement. Boolean flags manage add-ons enablement status. addon_enablement can be only one of the following:
analyticsEnabled

boolean

If the Analytics should be enabled in the environment.

apiSecurityEnabled

boolean

If the API Security should be enabled in the environment.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform