Method: projects.locations.repositories.attachments.create

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

string

Required. The name of the parent resource where the attachment will be created.

Authorization requires the following IAM permission on the specified resource parent:

  • artifactregistry.attachments.create

Query parameters

Parameters
attachmentId

string

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.