Method: installer.generateSecret
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://sasportal.googleapis.com/v1alpha1/installer:generateSecret
The URL uses gRPC Transcoding syntax.
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
{
"secret": string
} |
Fields |
secret |
string
The secret generated by the string and used by installer.validate .
|
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/sasportal
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-05 UTC.
[[["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 2023-12-05 UTC."],[[["\u003cp\u003eGenerates a secret used for installer validation via the \u003ccode\u003einstaller.validate\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eEmploys a \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003ehttps://sasportal.googleapis.com/v1alpha1/installer:generateSecret\u003c/code\u003e with an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides a JSON object containing the generated secret.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes gRPC Transcoding for the URL structure and necessitates the \u003ccode\u003ehttps://www.googleapis.com/auth/sasportal\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["A secret is generated for use with the `installer.validate` function. The HTTP request is a `POST` to `https://sasportal.googleapis.com/v1alpha1/installer:generateSecret`. The request body must be empty. A successful response returns a JSON object containing a `secret` string. This action requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization. The gRPC Transcoding syntax is used to generate this secret.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.GenerateSecretResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nGenerates a secret to be used with the [installer.validate](/spectrum-access-system/reference/rest/v1alpha1/installer/validate#spectrum.sas.portal.v1alpha1.DeviceManager.ValidateInstaller).\n\nHTTP request\n\n`POST https://sasportal.googleapis.com/v1alpha1/installer:generateSecret`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nRequest body\n\nThe request body must be empty.\n\nResponse body\n\nIf successful, the response body contains data with the following structure:\nResponse for [installer.generateSecret](/spectrum-access-system/reference/rest/v1alpha1/installer/generateSecret#spectrum.sas.portal.v1alpha1.DeviceManager.GenerateSecret).\n\n| JSON representation |\n|------------------------------|\n| ``` { \"secret\": string } ``` |\n\n| Fields ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `secret` | `string` The secret generated by the string and used by [installer.validate](/spectrum-access-system/reference/rest/v1alpha1/installer/validate#spectrum.sas.portal.v1alpha1.DeviceManager.ValidateInstaller). |\n\nAuthorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/sasportal`"]]