workspace_apis
Creates, updates, deletes, gets or lists a workspace_apis
resource.
Overview
Name | workspace_apis |
Type | Resource |
Id | azure.api_management.workspace_apis |
Fields
- vw_workspace_apis
- workspace_apis
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
apiId | text | field from the properties object |
api_revision | text | field from the properties object |
api_revision_description | text | field from the properties object |
api_version | text | field from the properties object |
api_version_description | text | field from the properties object |
api_version_set | text | field from the properties object |
api_version_set_id | text | field from the properties object |
authentication_settings | text | field from the properties object |
contact | text | field from the properties object |
display_name | text | field from the properties object |
is_current | text | field from the properties object |
is_online | text | field from the properties object |
license | text | field from the properties object |
path | text | field from the properties object |
protocols | 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 |
service_url | text | field from the properties object |
source_api_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
subscription_key_parameter_names | text | field from the properties object |
subscription_required | text | field from the properties object |
terms_of_service_url | text | field from the properties object |
type | text | field from the properties object |
workspaceId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | API Entity Properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiId, resourceGroupName, serviceName, subscriptionId, workspaceId | Gets the details of the API specified by its identifier. |
list_by_service | SELECT | resourceGroupName, serviceName, subscriptionId, workspaceId | Lists all APIs of the workspace in an API Management service instance. |
create_or_update | INSERT | apiId, resourceGroupName, serviceName, subscriptionId, workspaceId | Creates new or updates existing specified API of the workspace in an API Management service instance. |
delete | DELETE | If-Match, apiId, resourceGroupName, serviceName, subscriptionId, workspaceId | Deletes the specified API of the workspace in an API Management service instance. |
update | UPDATE | If-Match, apiId, resourceGroupName, serviceName, subscriptionId, workspaceId | Updates the specified API of the workspace in an API Management service instance. |
SELECT
examples
Lists all APIs of the workspace in an API Management service instance.
- vw_workspace_apis
- workspace_apis
SELECT
description,
apiId,
api_revision,
api_revision_description,
api_version,
api_version_description,
api_version_set,
api_version_set_id,
authentication_settings,
contact,
display_name,
is_current,
is_online,
license,
path,
protocols,
provisioning_state,
resourceGroupName,
serviceName,
service_url,
source_api_id,
subscriptionId,
subscription_key_parameter_names,
subscription_required,
terms_of_service_url,
type,
workspaceId
FROM azure.api_management.vw_workspace_apis
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
SELECT
properties
FROM azure.api_management.workspace_apis
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new workspace_apis
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.workspace_apis (
apiId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ apiId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: value
value: string
- name: format
value: string
- name: wsdlSelector
value:
- name: wsdlServiceName
value: string
- name: wsdlEndpointName
value: string
- name: apiType
value: string
- name: translateRequiredQueryParameters
value: string
- name: sourceApiId
value: string
- name: displayName
value: string
- name: serviceUrl
value: string
- name: path
value: string
- name: protocols
value:
- string
- name: apiVersionSet
value:
- name: id
value: string
- name: name
value: string
- name: description
value: string
- name: versioningScheme
value: string
- name: versionQueryName
value: string
- name: versionHeaderName
value: string
- name: provisioningState
value: string
UPDATE
example
Updates a workspace_apis
resource.
/*+ update */
UPDATE azure.api_management.workspace_apis
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
DELETE
example
Deletes the specified workspace_apis
resource.
/*+ delete */
DELETE FROM azure.api_management.workspace_apis
WHERE If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';