portal_revisions
Creates, updates, deletes, gets or lists a portal_revisions
resource.
Overview
Name | portal_revisions |
Type | Resource |
Id | azure.api_management.portal_revisions |
Fields
- vw_portal_revisions
- portal_revisions
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
created_date_time | text | field from the properties object |
is_current | text | field from the properties object |
portalRevisionId | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
status | text | field from the properties object |
status_details | text | field from the properties object |
subscriptionId | text | field from the properties object |
updated_date_time | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | portalRevisionId, resourceGroupName, serviceName, subscriptionId | Gets the developer portal's revision specified by its identifier. |
list_by_service | SELECT | resourceGroupName, serviceName, subscriptionId | Lists developer portal's revisions. |
create_or_update | INSERT | portalRevisionId, resourceGroupName, serviceName, subscriptionId | Creates a new developer portal's revision by running the portal's publishing. The isCurrent property indicates if the revision is publicly accessible. |
update | UPDATE | If-Match, portalRevisionId, resourceGroupName, serviceName, subscriptionId | Updates the description of specified portal revision or makes it current. |
SELECT
examples
Lists developer portal's revisions.
- vw_portal_revisions
- portal_revisions
SELECT
description,
created_date_time,
is_current,
portalRevisionId,
provisioning_state,
resourceGroupName,
serviceName,
status,
status_details,
subscriptionId,
updated_date_time
FROM azure.api_management.vw_portal_revisions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.api_management.portal_revisions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new portal_revisions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.portal_revisions (
portalRevisionId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ portalRevisionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: statusDetails
value: string
- name: status
value: string
- name: isCurrent
value: boolean
- name: createdDateTime
value: string
- name: updatedDateTime
value: string
- name: provisioningState
value: string
UPDATE
example
Updates a portal_revisions
resource.
/*+ update */
UPDATE azure.api_management.portal_revisions
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND portalRevisionId = '{{ portalRevisionId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';