The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of ServiceControllerClient.
The optional options argument may be used to configure aspects of the returned ServiceControllerConnection. Expected options are any of the types in the following option lists:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the Google Cloud C++ client library's Service Control API v2, covering version 2.11.0 and other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version for the service control api is 2.37.0-rc, and multiple past versions are also documented, ranging back to version 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes classes like \u003ccode\u003eServiceControllerClient\u003c/code\u003e and \u003ccode\u003eServiceControllerConnection\u003c/code\u003e, along with structs for configuring retry and backoff policies, and functions to connect to the service controller.\u003c/p\u003e\n"],["\u003cp\u003eThe API supports configuring retry policies, backoff policies and connection options via the ServiceControllerPolicyOptionList type alias.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeServiceControllerConnection\u003c/code\u003e function can be used to build a connection to the service control api and take in various options to help configure the connection.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::servicecontrol_v2 (2.11.0)\n\nVersion 2.11.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/servicecontrol/latest/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.41.0](/cpp/docs/reference/servicecontrol/2.41.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.40.0](/cpp/docs/reference/servicecontrol/2.40.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.39.0](/cpp/docs/reference/servicecontrol/2.39.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.38.0](/cpp/docs/reference/servicecontrol/2.38.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.37.0](/cpp/docs/reference/servicecontrol/2.37.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.36.0](/cpp/docs/reference/servicecontrol/2.36.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.35.0](/cpp/docs/reference/servicecontrol/2.35.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.34.0](/cpp/docs/reference/servicecontrol/2.34.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.33.0](/cpp/docs/reference/servicecontrol/2.33.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.32.0](/cpp/docs/reference/servicecontrol/2.32.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.31.0](/cpp/docs/reference/servicecontrol/2.31.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.30.0](/cpp/docs/reference/servicecontrol/2.30.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.29.0](/cpp/docs/reference/servicecontrol/2.29.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.28.0](/cpp/docs/reference/servicecontrol/2.28.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.27.0](/cpp/docs/reference/servicecontrol/2.27.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.26.0](/cpp/docs/reference/servicecontrol/2.26.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.25.1](/cpp/docs/reference/servicecontrol/2.25.1/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.24.0](/cpp/docs/reference/servicecontrol/2.24.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.23.0](/cpp/docs/reference/servicecontrol/2.23.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.22.1](/cpp/docs/reference/servicecontrol/2.22.1/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.21.0](/cpp/docs/reference/servicecontrol/2.21.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.20.0](/cpp/docs/reference/servicecontrol/2.20.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.19.0](/cpp/docs/reference/servicecontrol/2.19.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.18.0](/cpp/docs/reference/servicecontrol/2.18.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.17.0](/cpp/docs/reference/servicecontrol/2.17.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.16.0](/cpp/docs/reference/servicecontrol/2.16.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.15.1](/cpp/docs/reference/servicecontrol/2.15.1/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.14.0](/cpp/docs/reference/servicecontrol/2.14.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.13.0](/cpp/docs/reference/servicecontrol/2.13.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.12.0](/cpp/docs/reference/servicecontrol/2.12.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.11.0](/cpp/docs/reference/servicecontrol/2.11.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2) \n\nClasses\n-------\n\n### [ServiceControllerClient](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerClient)\n\n[Service Control API v2](https://cloud.google.com/service-infrastructure/docs/service-control/access-control)\n\n### [ServiceControllerConnection](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection)\n\nThe [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection) object for [`ServiceControllerClient`](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerClient).\n\n### [ServiceControllerConnectionIdempotencyPolicy](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnectionIdempotencyPolicy)\n\nStructs\n-------\n\n### [ServiceControllerBackoffPolicyOption](/cpp/docs/reference/servicecontrol/2.11.0/structgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerBackoffPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.\n\n### [ServiceControllerConnectionIdempotencyPolicyOption](/cpp/docs/reference/servicecontrol/2.11.0/structgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnectionIdempotencyPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.\n\n### [ServiceControllerRetryPolicyOption](/cpp/docs/reference/servicecontrol/2.11.0/structgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerRetryPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.\n\nFunctions\n---------\n\n### MakeServiceControllerConnection(Options)\n\nA factory function to construct an object of type [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [ServiceControllerClient](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.11.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::GrpcOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::UnifiedCredentialsOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::servicecontrol_v2::ServiceControllerPolicyOptionList`](/cpp/docs/reference/servicecontrol/2.11.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n\n| **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.\n\n### MakeDefaultServiceControllerConnectionIdempotencyPolicy()\n\nType Aliases\n------------\n\n### ServiceControllerRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::TraitBasedRetryPolicy\u003c servicecontrol_v2_internal::ServiceControllerRetryTraits \u003e` \n\n### ServiceControllerLimitedTimeRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedTimeRetryPolicy\u003c servicecontrol_v2_internal::ServiceControllerRetryTraits \u003e` \n\n### ServiceControllerLimitedErrorCountRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedErrorCountRetryPolicy\u003c servicecontrol_v2_internal::ServiceControllerRetryTraits \u003e` \n\n### ServiceControllerPolicyOptionList\n\n**Alias Of** : `OptionList\u003c ServiceControllerRetryPolicyOption, ServiceControllerBackoffPolicyOption, ServiceControllerConnectionIdempotencyPolicyOption \u003e` \nThe options applicable to ServiceController."]]