Update access policy

Basic Information

Update access policy

请求路径

  1. PUT /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/domains/{rule_id}

Body请求参数

  1. {
  2. "service_id": "string",
  3. "container_port": 0,
  4. "certificate_id": 0,
  5. "domain_name": "string",
  6. "domain_cookie": "string",
  7. "domain_header": "string" ,
  8. "the_weight": 0,
  9. "domain_path": "string",
  10. "rule_extensions": [
  11. "string"
  12. ],
  13. "whether_open": true,
  14. "auto_ssl": true,
  15. "auto_ssl_config": " string"
  16. }

request parameters

nameLocationtyperequiredillustrate
app_idpathintegerYesApp ID
team_idpathstringYesnone
region_namepathstringYesnone
rule_idpathstringYesnone
bodybodyUpdatePostHTTPGatewayRulenonone

return result

status codeStatus code meaningillustratedata model
200OKsuccessHTTPGatewayRule

Model

HTTPGatewayRule

  1. {
  2. "ID": 0,
  3. "rule_extensions": [
  4. "string"
  5. ],
  6. "http_rule_id": "string",
  7. "region_id": "string",
  8. "tenant_id": "string",
  9. " service_id": "string",
  10. "service_name": "string",
  11. "domain_name": "string",
  12. "container_port": -2147483648,
  13. "protocol": "string",
  14. "certificate_id": -2147483648,
  15. "domain_type": "string",
  16. "service_alias": "string",
  17. "is_senior": true,
  18. "domain_path": "string",
  19. "domain_cookie": "string",
  20. "domain_heander": "string ",
  21. "type": -2147483648,
  22. "the_weight": -2147483648,
  23. "is_outer_service": true,
  24. "auto_ssl": true,
  25. "auto_ssl_config": "string",
  26. "path_rewrite": true,
  27. " rewrites": "string"
  28. }

Attributes

nametyperequiredconstraintChinese nameillustrate
IDintegerfalseread-onlyIDnone
rule_extensions[string]falseread-onlynone
http_rule_idstringtruenoneHttp rule idhttp_rule_id
region_idstringtruenoneRegion idregion id
tenant_idstringtruenoneTenant idtenant id
service_idstringtruenoneService idcomponent id
service_namestringtruenoneService namecomponent name
domain_namestringtruenoneDomain namedomain name
container_portintegerfalsenoneContainer portcontainer port
protocolstringfalsenoneProtocolDomain type http https httptp https http and https
certificate_idintegerfalsenoneCertificate idCertificate ID
domain_typestringfalsenoneDomain typeComponent domain name type
service_aliasstringfalsenoneService aliascomponent alias
is_seniorbooleanfalsenoneIs seniorIs there an advanced route
domain_pathstringfalsenoneDomain pathdomain name path
domain_cookiestringfalsenoneDomain cookiesdomain cookie
domain_heanderstringfalsenoneDomain heanderdomain name heander
typeintegerfalsenoneTypeType (default:0, custom:1)
the_weightintegerfalsenoneThe weightWeights
is_outer_servicebooleanfalsenoneIs outer serviceWhether the external port has been opened
auto_sslbooleanfalsenoneAuto sslWhether to automatically match the certificate and upgrade to https, if enabled, the upgrade will be completed by an external service
auto_ssl_configstring¦nullfalsenoneAuto ssl configAutomatic distribution certificate configuration
path_rewritebooleanfalsenonePath rewriteWhether to enable simple route rewriting
rewritesstringfalsenoneRewritesComplex route rewrite configuration

UpdatePostHTTPGatewayRule

  1. {
  2. "service_id": "string",
  3. "container_port": 0,
  4. "certificate_id": 0,
  5. "domain_name": "string",
  6. "domain_cookie": "string",
  7. "domain_header": "string" ,
  8. "the_weight": 0,
  9. "domain_path": "string",
  10. "rule_extensions": [
  11. "string"
  12. ],
  13. "whether_open": true,
  14. "auto_ssl": true,
  15. "auto_ssl_config": " string"
  16. }

Attributes

nametyperequiredconstraintChinese nameillustrate
service_idstringtruenoneService idapplication component id
container_portintegerfalsenoneContainer portbind port
certificate_idintegerfalsenoneCertificate idcertificate id
domain_namestringfalsenoneDomain namedomain name
domain_cookiestringfalsenoneDomain cookiesdomain cookie
domain_headerstringfalsenoneDomain headerdomain header
the_weightintegerfalsenoneThe weightnone
domain_pathstringfalsenoneDomain pathdomain name path
rule_extensions[string]falsenonerule extension
whether_openbooleanfalsenoneWhether openIs it open
auto_sslbooleanfalsenoneAuto sslWhether to automatically match the certificate and upgrade to https, if enabled, the upgrade will be completed by an external service
auto_ssl_configstringfalsenoneAuto ssl configAutomatic distribution certificate configuration