Method: projects.deployments.replaceDeployment
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Erstellt oder ersetzt eine Bereitstellung mit dem angegebenen Namen.
HTTP-Anfrage
PUT https://gsuiteaddons.googleapis.com/v1/{deployment.name=projects/*/deployments/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
deployment.name |
string
Der Name der Bereitstellungsressource. Beispiel: projects/123/deployments/my_deployment .
|
Anfragetext
Der Anfragetext enthält eine Instanz von Deployment
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Deployment
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/cloud-platform
Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-04-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-04-22 (UTC)."],[[["\u003cp\u003eCreates or replaces a Google Workspace Add-on deployment with a specific name.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP PUT request with path parameters to identify the target deployment.\u003c/p\u003e\n"],["\u003cp\u003eRequires a request body containing the deployment details and an authorization scope for cloud platform access.\u003c/p\u003e\n"],["\u003cp\u003eReturns the updated deployment details in the response body upon successful execution.\u003c/p\u003e\n"]]],["This documentation details the process of creating or replacing a deployment via a `PUT` HTTP request to the specified URL. The URL structure is defined using gRPC Transcoding, and the request requires a deployment name as a path parameter (e.g., `projects/123/deployments/my_deployment`). The request body and successful response both utilize the `Deployment` resource. The authorization scope required is `https://www.googleapis.com/auth/cloud-platform`. The documentation also provide a \"Try it!\" section to test the API.\n"],null,["# Method: projects.deployments.replaceDeployment\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates or replaces a deployment with the specified name.\n\n### HTTP request\n\n`PUT https://gsuiteaddons.googleapis.com/v1/{deployment.name=projects/*/deployments/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------|-------------------------------------------------------------------------------------------|\n| `deployment.name` | `string` The deployment resource name. Example: `projects/123/deployments/my_deployment`. |\n\n### Request body\n\nThe request body contains an instance of [Deployment](/workspace/add-ons/reference/rest/v1/projects.deployments#Deployment).\n\n### Response body\n\nIf successful, the response body contains an instance of [Deployment](/workspace/add-ons/reference/rest/v1/projects.deployments#Deployment).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]