注意:此产品的某些方面处于 Beta 版阶段。Hybrid 安装选项是 GA。要加入 Beta 版计划,请与您的 Apigee 代表联系。

Method: organizations.environments.resourcefiles.create

Creates a resource file.

Specify the Content-Type as application/octet-stream or multipart/form-data.

For more information about resource files, see Resource files.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the environment in which to create the resource file in the following format: organizations/{org}/environments/{env}.

Authorization requires the following IAM permission on the specified resource parent:

  • apigee.resourcefiles.create

Query parameters

Parameters
type

string

Required. Resource file type. Valid types include java, js, jsc, properties, py, wsdl, xsd, or xsl. For more information, see Resource types.

name

string

Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}

Request body

The request body contains an instance of HttpBody.

Response body

If successful, the response body contains a newly created instance of ResourceFile.

Authorization Scopes

Requires the following OAuth scope:

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