assets
Creates, updates, deletes, gets or lists an assets resource.
Overview
| Name | assets |
| Type | Resource |
| Id | azure.defender_easm_dataplane.assets |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_raw | exec | asset_id, subscription_id, resource_group_name, workspace_name, endpoint | Retrieve an asset by assetId. Retrieve an asset by assetId. | |
list_raw | exec | subscription_id, resource_group_name, workspace_name, endpoint | filter, orderby, skip, mark | Retrieve a list of assets for the provided search parameters. Retrieve a list of assets for the provided search parameters. |
update | exec | subscription_id, resource_group_name, workspace_name, endpoint | filter | Update labels on assets matching the provided filter. Update labels on assets matching the provided filter. |
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 |
|---|---|---|
asset_id | string | The unique identifier for the asset. Ids are formatted as '$$' and can optionally be Base64 encoded if they contain special characters. Required. |
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
resource_group_name | string | |
subscription_id | string | |
workspace_name | string | |
filter | string | An expression on the resource type that selects the resources to be returned. Default value is None. |
mark | string | Specify this value instead of 'skip' to use cursor-based searching. Initial value is '*' and subsequent values are returned in the response. Default value is None. |
orderby | string | A list of expressions that specify the order of the returned resources. Default value is None. |
skip | integer | An offset into the collection of the first item to be returned. Default value is 0. |
Lifecycle Methods
- get_raw
- list_raw
- update
Retrieve an asset by assetId. Retrieve an asset by assetId.
EXEC azure.defender_easm_dataplane.assets.get_raw
@asset_id='{{ asset_id }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@endpoint='{{ endpoint }}' --required
;
Retrieve a list of assets for the provided search parameters. Retrieve a list of assets for the provided search parameters.
EXEC azure.defender_easm_dataplane.assets.list_raw
@subscription_id='{{ subscription_id }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@endpoint='{{ endpoint }}' --required,
@filter='{{ filter }}',
@orderby='{{ orderby }}',
@skip='{{ skip }}',
@mark='{{ mark }}'
;
Update labels on assets matching the provided filter. Update labels on assets matching the provided filter.
EXEC azure.defender_easm_dataplane.assets.update
@subscription_id='{{ subscription_id }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@endpoint='{{ endpoint }}' --required,
@filter='{{ filter }}'
;