workspace_api_operations
Creates, updates, deletes, gets or lists a workspace_api_operations
resource.
Overview
Name | workspace_api_operations |
Type | Resource |
Id | azure.api_management.workspace_api_operations |
Fields
- vw_workspace_api_operations
- workspace_api_operations
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
apiId | text | field from the properties object |
display_name | text | field from the properties object |
method | text | field from the properties object |
operationId | text | field from the properties object |
policies | text | field from the properties object |
request | text | field from the properties object |
resourceGroupName | text | field from the properties object |
responses | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
template_parameters | text | field from the properties object |
url_template | text | field from the properties object |
workspaceId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Operation Contract Properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceId | Gets the details of the API Operation specified by its identifier. |
list_by_api | SELECT | apiId, resourceGroupName, serviceName, subscriptionId, workspaceId | Lists a collection of the operations for the specified API. |
create_or_update | INSERT | apiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceId | Creates a new operation in the API or updates an existing one. |
delete | DELETE | If-Match, apiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceId | Deletes the specified operation in the API. |
update | UPDATE | If-Match, apiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceId | Updates the details of the operation in the API specified by its identifier. |
SELECT
examples
Lists a collection of the operations for the specified API.
- vw_workspace_api_operations
- workspace_api_operations
SELECT
description,
apiId,
display_name,
method,
operationId,
policies,
request,
resourceGroupName,
responses,
serviceName,
subscriptionId,
template_parameters,
url_template,
workspaceId
FROM azure.api_management.vw_workspace_api_operations
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
SELECT
properties
FROM azure.api_management.workspace_api_operations
WHERE apiId = '{{ apiId }}'
AND 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_api_operations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.workspace_api_operations (
apiId,
operationId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ apiId }}',
'{{ operationId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: displayName
value: string
- name: method
value: string
- name: urlTemplate
value: string
- name: templateParameters
value:
- - name: name
value: string
- name: description
value: string
- name: type
value: string
- name: defaultValue
value: string
- name: required
value: boolean
- name: values
value:
- string
- name: schemaId
value: string
- name: typeName
value: string
- name: examples
value: []
- name: description
value: string
- name: request
value:
- name: description
value: string
- name: queryParameters
value:
- - name: name
value: string
- name: description
value: string
- name: type
value: string
- name: defaultValue
value: string
- name: required
value: boolean
- name: values
value:
- string
- name: schemaId
value: string
- name: typeName
value: string
- name: headers
value:
- - name: name
value: string
- name: description
value: string
- name: type
value: string
- name: defaultValue
value: string
- name: required
value: boolean
- name: values
value:
- string
- name: schemaId
value: string
- name: typeName
value: string
- name: representations
value:
- - name: contentType
value: string
- name: schemaId
value: string
- name: typeName
value: string
- name: formParameters
value:
- - name: name
value: string
- name: description
value: string
- name: type
value: string
- name: defaultValue
value: string
- name: required
value: boolean
- name: values
value:
- string
- name: schemaId
value: string
- name: typeName
value: string
- name: responses
value:
- - name: statusCode
value: integer
- name: description
value: string
- name: representations
value:
- - name: contentType
value: string
- name: schemaId
value: string
- name: typeName
value: string
- name: formParameters
value:
- - name: name
value: string
- name: description
value: string
- name: type
value: string
- name: defaultValue
value: string
- name: required
value: boolean
- name: values
value:
- string
- name: schemaId
value: string
- name: typeName
value: string
- name: headers
value:
- - name: name
value: string
- name: description
value: string
- name: type
value: string
- name: defaultValue
value: string
- name: required
value: boolean
- name: values
value:
- string
- name: schemaId
value: string
- name: typeName
value: string
- name: policies
value: string
UPDATE
example
Updates a workspace_api_operations
resource.
/*+ update */
UPDATE azure.api_management.workspace_api_operations
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND operationId = '{{ operationId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';
DELETE
example
Deletes the specified workspace_api_operations
resource.
/*+ delete */
DELETE FROM azure.api_management.workspace_api_operations
WHERE If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND operationId = '{{ operationId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';