Skip to main content

attributes

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

Overview

Nameattributes
TypeResource
Idgoogle.apigee.attributes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringAPI key of the attribute.
valuestringValue of the attribute.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_developers_apps_attributes_getselectorganizationsId, developersId, appsId, attributesIdReturns a developer app attribute.
organizations_apiproducts_attributes_getselectorganizationsId, apiproductsId, attributesIdGets the value of an API product attribute.
organizations_developers_apps_attributes_listselectorganizationsId, developersId, appsIdReturns a list of all developer app attributes.
organizations_developers_attributes_getselectorganizationsId, developersId, attributesIdReturns the value of the specified developer attribute.
organizations_apiproducts_attributes_listselectorganizationsId, apiproductsIdLists all API product attributes.
organizations_developers_attributes_listselectorganizationsId, developersIdReturns a list of all developer attributes.
organizations_developers_apps_attributes_deletedeleteorganizationsId, developersId, appsId, attributesIdDeletes a developer app attribute.
organizations_apiproducts_attributes_deletedeleteorganizationsId, apiproductsId, attributesIdDeletes an API product attribute.
organizations_developers_attributes_deletedeleteorganizationsId, developersId, attributesIdDeletes a developer attribute.
organizations_apiproducts_attributes_update_api_product_attributeexecorganizationsId, apiproductsId, attributesIdUpdates the value of an API product attribute. Note: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the ExpiresIn element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.
organizations_developers_apps_attributes_update_developer_app_attributeexecorganizationsId, developersId, appsId, attributesIdUpdates a developer app attribute. Note: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an ExpiresIn element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.
organizations_developers_attributes_update_developer_attributeexecorganizationsId, developersId, attributesIdUpdates a developer attribute. Note: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (default). Any custom attributes associated with these entities are cached for at least 180 seconds after the entity is accessed at runtime. Therefore, an ExpiresIn element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.

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
apiproductsIdstring
appsIdstring
attributesIdstring
developersIdstring
organizationsIdstring

SELECT examples

Returns a developer app attribute.

SELECT
name,
value
FROM google.apigee.attributes
WHERE organizationsId = '{{ organizationsId }}' -- required
AND developersId = '{{ developersId }}' -- required
AND appsId = '{{ appsId }}' -- required
AND attributesId = '{{ attributesId }}' -- required;

DELETE examples

Deletes a developer app attribute.

DELETE FROM google.apigee.attributes
WHERE organizationsId = '{{ organizationsId }}' --required
AND developersId = '{{ developersId }}' --required
AND appsId = '{{ appsId }}' --required
AND attributesId = '{{ attributesId }}' --required;

Lifecycle Methods

Updates the value of an API product attribute. Note: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the ExpiresIn element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.

EXEC google.apigee.attributes.organizations_apiproducts_attributes_update_api_product_attribute 
@organizationsId='{{ organizationsId }}' --required,
@apiproductsId='{{ apiproductsId }}' --required,
@attributesId='{{ attributesId }}' --required
@@json=
'{
"name": "{{ name }}",
"value": "{{ value }}"
}';