All Products
Search
Document Center

Function Compute:HTTPTriggerConfig

最終更新日:Sep 23, 2024
ParameterTypeDescriptionExample
object

The HTTP trigger configurations.

authTypestring

The authentication type. The default value is function, which specifies that authentication is required.

anonymous, function
methodsarray

The request methods. You can specify multiple methods at the same time.

methodstring

The request method.

Valid values:

  • HEAD
  • DELETE
  • POST
  • GET
  • OPTIONS
  • PUT
  • PATCH
GET, POST
disableURLInternetboolean

Specifies whether to disable access to the default Internet domain. If you set this parameter to true, a 403 error is returned if you access the default public URL provided by the function. A value of false does not affect the running of the function.

authConfigstring

The authentication configuration.