Method: customers.devices.create
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
HTTP-запрос
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
URL использует синтаксис перекодировки gRPC .
Параметры пути
Параметры |
---|
parent | string Обязательно. Имя родительского ресурса. |
Текст запроса
Тело запроса содержит экземпляр Device
.
Тело ответа
В случае успеха тело ответа содержит вновь созданный экземпляр Device
.
Области авторизации
Требуется следующая область OAuth:
-
https://www.googleapis.com/auth/sasportal
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eCreates a device under a node or customer.\u003c/p\u003e\n"],["\u003cp\u003eUses \u003ccode\u003ePOST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices\u003c/code\u003e with gRPC Transcoding syntax for the request.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003eparent\u003c/code\u003e path parameter specifying the name of the parent resource (node or customer).\u003c/p\u003e\n"],["\u003cp\u003eRequest body should contain a \u003ccode\u003eDevice\u003c/code\u003e instance and a successful response returns the created \u003ccode\u003eDevice\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eNeeds \u003ccode\u003ehttps://www.googleapis.com/auth/sasportal\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["A `POST` request is made to `https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices` to create a device. The `parent` path parameter, a string specifying the parent resource, is required. The request body must include a `Device` instance. Upon success, the response contains the newly created `Device`. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"],null,["# Method: customers.devices.create\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\nCreates a [device](/spectrum-access-system/reference/rest/v1alpha1/customers.deployments.devices#Device) under a [node](/spectrum-access-system/reference/rest/v1alpha1/customers.nodes#Node) or [customer](/spectrum-access-system/reference/rest/v1alpha1/customers#Customer).\n\n### HTTP request\n\n`POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------|\n| `parent` | `string` Required. The name of the parent resource. |\n\n### Request body\n\nThe request body contains an instance of [Device](/spectrum-access-system/reference/rest/v1alpha1/customers.deployments.devices#Device).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Device](/spectrum-access-system/reference/rest/v1alpha1/customers.deployments.devices#Device).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/sasportal`"]]