Reference documentation and code samples for the Secret Manager v1 API class SecretPayload.
A secret payload resource in the Secret Manager API. This contains the
sensitive secret payload that is associated with a
[SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
Optional. If specified,
[SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService]
will verify the integrity of the received
[data][google.cloud.secretmanager.v1.SecretPayload.data] on
[SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion]
calls using the crc32c checksum and store it to include in future
[SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion]
responses. If a checksum is not provided in the
[SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion]
request, the
[SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService]
will generate and store one for you.
[[["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-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eSecretPayload\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSecretPayload\u003c/code\u003e is a resource in the Secret Manager API used to contain sensitive secret data associated with a \u003ccode\u003eSecretVersion\u003c/code\u003e, with the maximum secret data size being 64KiB.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSecretPayload\u003c/code\u003e has a constructor, which is overloaded, and exposes two main properties called \u003ccode\u003eData\u003c/code\u003e, and \u003ccode\u003eDataCrc32C\u003c/code\u003e respectively, and a boolean \u003ccode\u003eHasDataCrc32C\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDataCrc32C\u003c/code\u003e property is an optional checksum used to verify the integrity of the \u003ccode\u003eData\u003c/code\u003e property upon calls to \u003ccode\u003eAddSecretVersion\u003c/code\u003e, and this checksum will be included in subsequent \u003ccode\u003eAccessSecretVersion\u003c/code\u003e responses.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists various available versions of the \u003ccode\u003eSecretPayload\u003c/code\u003e class, ranging from the latest 2.5.0 down to version 1.3.0, along with links to each version's documentation.\u003c/p\u003e\n"]]],[],null,[]]