While this library is GA, please note that the Google Cloud C++ client libraries do not follow Semantic Versioning.
Quickstart
The following shows the code that you'll run in the google/cloud/cloudsecuritycompliance/quickstart/ directory, which should give you a taste of the Cloud Security Compliance API C++ client library API.
This library offers multiple *Client classes, which are listed below. Each one of these classes exposes all the RPCs for a service as member functions of the class. This library groups multiple services because they are part of the same product or are often used together. A typical example may be the administrative and data plane operations for a single product.
The library also has other classes that provide helpers, configuration parameters, and infrastructure to mock the *Client classes when testing your application.
[[["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-08-27 UTC."],[],[],null,["Cloud Security Compliance API C++ Client Library\n\nAn idiomatic C++ client library for the [Cloud Security Compliance API](https://cloud.google.com/security-command-center/docs/compliance-manager-overview).\n\nWhile this library is **GA** , please note that the Google Cloud C++ client libraries do **not** follow [Semantic Versioning](https://semver.org/).\n\nQuickstart\n\nThe following shows the code that you'll run in the `google/cloud/cloudsecuritycompliance/quickstart/` directory, which should give you a taste of the Cloud Security Compliance API C++ client library API. \n\n #include \"google/cloud/cloudsecuritycompliance/v1/config_client.h\"\n #include \"google/cloud/location.h\"\n #include \u003ciostream\u003e\n\n int main(int argc, char* argv[]) try {\n if (argc != 3) {\n std::cerr \u003c\u003c \"Usage: \" \u003c\u003c argv[0] \u003c\u003c \" organization-id location-id\\n\";\n return 1;\n }\n\n auto const parent =\n std::string(\"organizations/\") + argv[1] + \"/locations/\" + argv[2];\n\n namespace cloudsecuritycompliance =\n ::google::cloud::cloudsecuritycompliance_v1;\n auto client = cloudsecuritycompliance::ConfigClient(\n cloudsecuritycompliance::MakeConfigConnection());\n\n for (auto r : client.ListFrameworks(parent)) {\n if (!r) throw std::move(r).status();\n std::cout \u003c\u003c r-\u003eDebugString() \u003c\u003c \"\\n\";\n }\n\n return 0;\n } catch (google::cloud::Status const& status) {\n std::cerr \u003c\u003c \"google::cloud::Status thrown: \" \u003c\u003c status \u003c\u003c \"\\n\";\n return 1;\n }\n\nMain classes\n\nThis library offers multiple `*Client` classes, which are listed below. Each one of these classes exposes all the RPCs for a service as member functions of the class. This library groups multiple services because they are part of the same product or are often used together. A typical example may be the administrative and data plane operations for a single product.\n\nThe library also has other classes that provide helpers, configuration parameters, and infrastructure to mock the `*Client` classes when testing your application.\n\n- [`cloudsecuritycompliance_v1::ConfigClient`](/cpp/docs/reference/cloudsecuritycompliance/latest/classgoogle_1_1cloud_1_1cloudsecuritycompliance__v1_1_1ConfigClient)\n- [`cloudsecuritycompliance_v1::DeploymentClient`](/cpp/docs/reference/cloudsecuritycompliance/latest/classgoogle_1_1cloud_1_1cloudsecuritycompliance__v1_1_1DeploymentClient)\n\nMore Information\n\n- [Error Handling](https://cloud.google.com/cpp/docs/reference/common/latest/common-error-handling.html) - describes how the library reports errors.\n- [How to Override the Default Endpoint](/cpp/docs/reference/cloudsecuritycompliance/latest/cloudsecuritycompliance-override-endpoint) - describes how to override the default endpoint.\n- [How to Override the Authentication Credentials](/cpp/docs/reference/cloudsecuritycompliance/latest/cloudsecuritycompliance-override-authentication) - describes how to change the authentication credentials used by the library.\n- [Override Retry, Backoff, and Idempotency Policies](/cpp/docs/reference/cloudsecuritycompliance/latest/cloudsecuritycompliance-override-retry) - describes how to change the default retry policies.\n- [Environment Variables](/cpp/docs/reference/cloudsecuritycompliance/latest/cloudsecuritycompliance-env) - describes environment variables that can configure the behavior of the library."]]