Skip to main content

resourcefiles

Creates, updates, deletes, gets or lists a resourcefiles resource.

Overview

Nameresourcefiles
TypeResource
Idgoogle.apigee.resourcefiles

Fields

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

Methods

NameAccessible byRequired ParamsDescription
organizations_environments_resourcefiles_getSELECTenvironmentsId, name, organizationsId, typeGets the contents of a resource file. For more information about resource files, see Resource files.
organizations_environments_resourcefiles_listSELECTenvironmentsId, organizationsIdLists all resource files, optionally filtering by type. For more information about resource files, see Resource files.
organizations_environments_resourcefiles_createINSERTenvironmentsId, organizationsIdCreates a resource file. Specify the Content-Type as application/octet-stream or multipart/form-data. For more information about resource files, see Resource files.
organizations_environments_resourcefiles_deleteDELETEenvironmentsId, name, organizationsId, typeDeletes a resource file. For more information about resource files, see Resource files.
organizations_environments_resourcefiles_updateREPLACEenvironmentsId, name, organizationsId, typeUpdates a resource file. Specify the Content-Type as application/octet-stream or multipart/form-data. For more information about resource files, see Resource files.

SELECT examples

Lists all resource files, optionally filtering by type. For more information about resource files, see Resource files.

SELECT
contentType,
data,
extensions
FROM google.apigee.resourcefiles
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new resourcefiles resource.

/*+ create */
INSERT INTO google.apigee.resourcefiles (
environmentsId,
organizationsId,
contentType,
data,
extensions
)
SELECT
'{{ environmentsId }}',
'{{ organizationsId }}',
'{{ contentType }}',
'{{ data }}',
'{{ extensions }}'
;

REPLACE example

Replaces all fields in the specified resourcefiles resource.

/*+ update */
REPLACE google.apigee.resourcefiles
SET
contentType = '{{ contentType }}',
data = '{{ data }}',
extensions = '{{ extensions }}'
WHERE
environmentsId = '{{ environmentsId }}'
AND name = '{{ name }}'
AND organizationsId = '{{ organizationsId }}'
AND type = '{{ type }}';

DELETE example

Deletes the specified resourcefiles resource.

/*+ delete */
DELETE FROM google.apigee.resourcefiles
WHERE environmentsId = '{{ environmentsId }}'
AND name = '{{ name }}'
AND organizationsId = '{{ organizationsId }}'
AND type = '{{ type }}';