Method: projects.serviceAccounts.signBlob Stay organized with collections Save and categorize content based on your preferences.
Signs a blob using a service account's system-managed private key.
HTTP request
POST https://iamcredentials.googleapis.com/v1/{name=projects/*/serviceAccounts/*}:signBlob
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The resource name of the service account for which the credentials are requested, in the following format: Authorization requires the followingIAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{"delegates":[string],"payload":string} |
| Fields | |
|---|---|
delegates[] |
The sequence of service accounts in a delegation chain. Each service account must be granted the The delegates must have the following format: |
payload |
Required. The bytes to sign. A base64-encoded string. |
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{"keyId":string,"signedBlob":string} |
| Fields | |
|---|---|
keyId |
The ID of the key used to sign the blob. The key used for signing will remain valid for at least 12 hours after the blob is signed. To verify the signature, you can retrieve the public key in several formats from the following endpoints:
|
signedBlob |
The signature for the blob. Does not include the original blob. After the key pair referenced by the A base64-encoded string. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/iamhttps://www.googleapis.com/auth/cloud-platform
For more information, see theAuthentication Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-21 UTC.