- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the parent resource where the attachment will be created. Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
attachmentId |
Required. The attachment id to use for this attachment. |
Request body
The request body contains an instance of Attachment
.
Response body
If successful, the response body contains a newly created instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.