operations
Creates, updates, deletes, gets or lists an operations resource.
Overview
| Name | operations |
| Type | Resource |
| Id | azure_extras.marketplace.operations |
Fields
The following fields are returned by SELECT queries:
- list
OK. The request has succeeded.
| Name | Datatype | Description |
|---|---|---|
id | string | Operation ID |
name | string | Operation name: {provider}/{resource}/{operation} |
display | object | The object that represents the operation. |
isDataAction | boolean | Indicates whether the operation is a data action |
origin | string | Origin of the operation |
properties | object | Properties of the operation |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | Lists all of the available Microsoft.Marketplace REST API operations. | ||
query_user_rules | exec | privateStoreId | All rules approved in the private store that are relevant for user subscriptions | |
set_collection_rules | exec | privateStoreId, collectionId | Set rule for specific private store and collection | |
query_rules | exec | privateStoreId, collectionId | Get a list of all private store rules in the given private store and collection |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
collectionId | string | The collection ID |
privateStoreId | string | The store ID - must use the tenant ID |
SELECT examples
- list
Lists all of the available Microsoft.Marketplace REST API operations.
SELECT
id,
name,
display,
isDataAction,
origin,
properties
FROM azure_extras.marketplace.operations
;
Lifecycle Methods
- query_user_rules
- set_collection_rules
- query_rules
All rules approved in the private store that are relevant for user subscriptions
EXEC azure_extras.marketplace.operations.query_user_rules
@privateStoreId='{{ privateStoreId }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;
Set rule for specific private store and collection
EXEC azure_extras.marketplace.operations.set_collection_rules
@privateStoreId='{{ privateStoreId }}' --required,
@collectionId='{{ collectionId }}' --required
@@json=
'{
"value": "{{ value }}",
"nextLink": "{{ nextLink }}"
}'
;
Get a list of all private store rules in the given private store and collection
EXEC azure_extras.marketplace.operations.query_rules
@privateStoreId='{{ privateStoreId }}' --required,
@collectionId='{{ collectionId }}' --required
;