Method: organizations.environments.subscribe

Creates a subscription for the environment's pub/sub topic. The server will assign a random name for this subscription. The "name" and "push_config" must not be specified.

HTTP request

POST https://apigee.googleapis.com/v1/{parent=organizations/*/environments/*}:subscribe

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the environment to subscribe in the following format: organizations/{org}/environments/{env}

Request body

The request body must be empty.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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