subscriptions
Creates, updates, deletes, gets or lists a subscriptions
resource.
Overview
Name | subscriptions |
Type | Resource |
Id | google.apigee.subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Name of the API product subscription. |
apiproduct | string | Name of the API product for which the developer is purchasing a subscription. |
createdAt | string | Output only. Time when the API product subscription was created in milliseconds since epoch. |
endTime | string | Time when the API product subscription ends in milliseconds since epoch. |
lastModifiedAt | string | Output only. Time when the API product subscription was last modified in milliseconds since epoch. |
startTime | string | Time when the API product subscription starts in milliseconds since epoch. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_developers_subscriptions_get | SELECT | developersId, organizationsId, subscriptionsId | Gets details for an API product subscription. |
organizations_developers_subscriptions_list | SELECT | developersId, organizationsId | Lists all API product subscriptions for a developer. |
organizations_developers_subscriptions_create | INSERT | developersId, organizationsId | Creates a subscription to an API product. |
organizations_developers_subscriptions_expire | EXEC | developersId, organizationsId, subscriptionsId | Expires an API product subscription immediately. |
SELECT
examples
Lists all API product subscriptions for a developer.
SELECT
name,
apiproduct,
createdAt,
endTime,
lastModifiedAt,
startTime
FROM google.apigee.subscriptions
WHERE developersId = '{{ developersId }}'
AND organizationsId = '{{ organizationsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new subscriptions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.subscriptions (
developersId,
organizationsId,
endTime,
startTime,
apiproduct
)
SELECT
'{{ developersId }}',
'{{ organizationsId }}',
'{{ endTime }}',
'{{ startTime }}',
'{{ apiproduct }}'
;
- name: your_resource_model_name
props:
- name: createdAt
value: string
- name: lastModifiedAt
value: string
- name: endTime
value: string
- name: startTime
value: string
- name: name
value: string
- name: apiproduct
value: string