All Products
Search
Document Center

Function Compute:PathConfig

Last Updated:Sep 23, 2024
ParameterTypeDescriptionExample
object

The single routing rule for a custom domain name.

functionNamestring

The name of the function that corresponds to the routing rule.

f1
methodsarray

The request methods supported by the routing rule.

string

The request method.

Valid values:

  • HEAD
  • DELETE
  • POST
  • GET
  • OPTIONS
  • PUT
  • PATCH
GET
pathstring

The request path that corresponds to the routing rule.

/login
qualifierstring

The version of the service to which the function that corresponds to the routing rule belongs. For more information, see Overview .

prod
serviceNamestring

The name of the service to which the function that corresponds to the routing rule belongs.

s1
rewriteConfigRewriteConfig

The URI rewrite configuration.