Registry

GetArtifact returns a specified artifact.

get/v1/projects/{project}/locations/{location}/artifacts/{artifact}

Path parameters

projectstring required

The project id.

locationstring required

The location id.

artifactstring required

The artifact id.

Response

OK

namestring

Resource name.

createTimestring date-time

Output only. Creation timestamp.

updateTimestring date-time

Output only. Last update timestamp.

mimeTypestring

A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").

sizeBytesinteger

Output only. The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.

hashstring

Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.

contentsstring bytes

Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.

Changes

Changed in 4 of the 14 revisions of this API.447

  • 60e792df408831See the full diff
    • the response's body type changed from no type to object for status

      response-body-type-changed

    • the response's property format changed from RFC3339 to date-time for status

      response-property-type-changed

    • the response's property format changed from RFC3339 to date-time for status

      response-property-type-changed

    • the response optional property became write-only for the status

      response-optional-property-became-write-only

  • ce92b3e601d445See the full diff
    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • api tag Registry added

      api-tag-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog