Reference documentation and code samples for the App Engine Admin V1 API module Google::Cloud::AppEngine::V1::SecurityLevel.
Methods to enforce security (HTTPS) on a URL.
Constants
SECURE_UNSPECIFIED
value: 0 Not specified.
SECURE_DEFAULT
value: 0 Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects. The application can examine the request to determine
which protocol was used, and respond accordingly.
SECURE_NEVER
value: 1 Requests for a URL that match this handler that use HTTPS are automatically
redirected to the HTTP equivalent URL.
SECURE_OPTIONAL
value: 2 Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects. The application can examine the request to determine
which protocol was used and respond accordingly.
SECURE_ALWAYS
value: 3 Requests for a URL that match this handler that do not use HTTPS are
automatically redirected to the HTTPS URL with the same path. Query
parameters are reserved for the redirect.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# App Engine Admin V1 API - Module Google::Cloud::AppEngine::V1::SecurityLevel (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [1.2.1](/ruby/docs/reference/google-cloud-app_engine-v1/1.2.1/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [1.1.0](/ruby/docs/reference/google-cloud-app_engine-v1/1.1.0/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [1.0.1](/ruby/docs/reference/google-cloud-app_engine-v1/1.0.1/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.10.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.10.0/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.9.2](/ruby/docs/reference/google-cloud-app_engine-v1/0.9.2/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.8.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.8.0/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.7.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.7.0/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.6.1](/ruby/docs/reference/google-cloud-app_engine-v1/0.6.1/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.5.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.5.0/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.4.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.4.0/Google-Cloud-AppEngine-V1-SecurityLevel)\n- [0.3.6](/ruby/docs/reference/google-cloud-app_engine-v1/0.3.6/Google-Cloud-AppEngine-V1-SecurityLevel) \nReference documentation and code samples for the App Engine Admin V1 API module Google::Cloud::AppEngine::V1::SecurityLevel.\n\nMethods to enforce security (HTTPS) on a URL.\n\nConstants\n---------\n\n### SECURE_UNSPECIFIED\n\n**value:** 0 \nNot specified.\n\n### SECURE_DEFAULT\n\n**value:** 0 \nBoth HTTP and HTTPS requests with URLs that match the handler succeed\nwithout redirects. The application can examine the request to determine\nwhich protocol was used, and respond accordingly.\n\n### SECURE_NEVER\n\n**value:** 1 \nRequests for a URL that match this handler that use HTTPS are automatically\nredirected to the HTTP equivalent URL.\n\n### SECURE_OPTIONAL\n\n**value:** 2 \nBoth HTTP and HTTPS requests with URLs that match the handler succeed\nwithout redirects. The application can examine the request to determine\nwhich protocol was used and respond accordingly.\n\n### SECURE_ALWAYS\n\n**value:** 3 \nRequests for a URL that match this handler that do not use HTTPS are\nautomatically redirected to the HTTPS URL with the same path. Query\nparameters are reserved for the redirect."]]