Skip to main content

artifacts_contents

Creates, updates, deletes, gets or lists an artifacts_contents resource.

Overview

Nameartifacts_contents
TypeResource
Idgoogle.apigeeregistry.artifacts_contents

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
contentTypestringThe HTTP Content-Type header value specifying the content type of the body.
datastring (byte)The HTTP request/response body as raw binary.
extensionsarrayApplication specific response metadata. Must be set in the first response for streaming APIs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_apis_versions_specs_artifacts_get_contentsselectprojectsId, locationsId, apisId, versionsId, specsId, artifactsIdReturns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).
projects_locations_apis_versions_artifacts_get_contentsselectprojectsId, locationsId, apisId, versionsId, artifactsIdReturns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).
projects_locations_apis_deployments_artifacts_get_contentsselectprojectsId, locationsId, apisId, deploymentsId, artifactsIdReturns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).
projects_locations_apis_artifacts_get_contentsselectprojectsId, locationsId, apisId, artifactsIdReturns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).
projects_locations_artifacts_get_contentsselectprojectsId, locationsId, artifactsIdReturns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
apisIdstring
artifactsIdstring
deploymentsIdstring
locationsIdstring
projectsIdstring
specsIdstring
versionsIdstring

SELECT examples

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

SELECT
contentType,
data,
extensions
FROM google.apigeeregistry.artifacts_contents
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND apisId = '{{ apisId }}' -- required
AND versionsId = '{{ versionsId }}' -- required
AND specsId = '{{ specsId }}' -- required
AND artifactsId = '{{ artifactsId }}' -- required;