vw_user_subscriptions
Creates, updates, deletes, gets or lists a vw_user_subscriptions
resource.
Overview
Name | vw_user_subscriptions |
Type | View |
Id | azure.api_management.vw_user_subscriptions |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.ownerId') as "owner_id",
JSON_EXTRACT(properties, '$.scope') as "scope",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.createdDate') as "created_date",
JSON_EXTRACT(properties, '$.startDate') as "start_date",
JSON_EXTRACT(properties, '$.expirationDate') as "expiration_date",
JSON_EXTRACT(properties, '$.endDate') as "end_date",
JSON_EXTRACT(properties, '$.notificationDate') as "notification_date",
JSON_EXTRACT(properties, '$.primaryKey') as "primary_key",
JSON_EXTRACT(properties, '$.secondaryKey') as "secondary_key",
JSON_EXTRACT(properties, '$.stateComment') as "state_comment",
JSON_EXTRACT(properties, '$.allowTracing') as "allow_tracing",
subscriptionId,
resourceGroupName,
serviceName,
userId,
sid
FROM azure.api_management.user_subscriptions
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serviceName = 'replace-me' AND userId = 'replace-me';
SELECT
json_extract_path_text(properties, '$.ownerId') as "owner_id",
json_extract_path_text(properties, '$.scope') as "scope",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.state') as "state",
json_extract_path_text(properties, '$.createdDate') as "created_date",
json_extract_path_text(properties, '$.startDate') as "start_date",
json_extract_path_text(properties, '$.expirationDate') as "expiration_date",
json_extract_path_text(properties, '$.endDate') as "end_date",
json_extract_path_text(properties, '$.notificationDate') as "notification_date",
json_extract_path_text(properties, '$.primaryKey') as "primary_key",
json_extract_path_text(properties, '$.secondaryKey') as "secondary_key",
json_extract_path_text(properties, '$.stateComment') as "state_comment",
json_extract_path_text(properties, '$.allowTracing') as "allow_tracing",
subscriptionId,
resourceGroupName,
serviceName,
userId,
sid
FROM azure.api_management.user_subscriptions
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND serviceName = 'replace-me' AND userId = 'replace-me';