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.
SecureOptional
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.
[[["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-09 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eHttpsTrigger.Types.SecurityLevel\u003c/code\u003e enum is 2.7.0, part of the Google.Cloud.Functions.V1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis enum defines security levels for HTTPS triggers, including \u003ccode\u003eSecureAlways\u003c/code\u003e, \u003ccode\u003eSecureOptional\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSecureAlways\u003c/code\u003e redirects HTTP requests to HTTPS, while \u003ccode\u003eSecureOptional\u003c/code\u003e allows both HTTP and HTTPS without redirects.\u003c/p\u003e\n"],["\u003cp\u003eThe Security Level \u003ccode\u003eUnspecified\u003c/code\u003e is not assigned to any protocol, and is left as unspecified.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers versions of this enum from 1.1.0 up to the current latest version.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v1 API - Enum HttpsTrigger.Types.SecurityLevel (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.6.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.5.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.4.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.3.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.2.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.1.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.0.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.3.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.2.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.1.0/Google.Cloud.Functions.V1.HttpsTrigger.Types.SecurityLevel) \n\n public enum HttpsTrigger.Types.SecurityLevel\n\nReference documentation and code samples for the Cloud Functions v1 API enum HttpsTrigger.Types.SecurityLevel.\n\nAvailable security level settings.\n\nThis controls the methods to enforce security (HTTPS) on a URL.\n\nIf unspecified, SECURE_OPTIONAL will be used.\n\nNamespace\n---------\n\n[Google.Cloud.Functions.V1](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V1.dll"]]