Skip to main content

exports

Creates, updates, deletes, gets or lists a exports resource.

Overview

Nameexports
TypeResource
Idazure.cost_management.exports

Fields

NameDatatypeDescription
idtextResource Id.
nametextResource name.
definitiontextfield from the properties object
delivery_infotextfield from the properties object
e_tagtextfield from the properties object
exportNametextfield from the properties object
formattextfield from the properties object
identitytextManaged service identity (either system assigned, or none)
locationtextThe location of the Export's managed identity. Only required when utilizing managed identity.
next_run_time_estimatetextfield from the properties object
partition_datatextfield from the properties object
run_historytextfield from the properties object
scheduletextfield from the properties object
scopetextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTexportName, scopeThe operation to get the export for the defined scope by export name.
listSELECTscopeThe operation to list all exports at the given scope.
create_or_updateINSERTexportName, scopeThe operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
deleteDELETEexportName, scopeThe operation to delete a export.
executeEXECexportName, scopeThe operation to run an export.

SELECT examples

The operation to list all exports at the given scope.

SELECT
id,
name,
definition,
delivery_info,
e_tag,
exportName,
format,
identity,
location,
next_run_time_estimate,
partition_data,
run_history,
schedule,
scope,
type
FROM azure.cost_management.vw_exports
WHERE scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new exports resource.

/*+ create */
INSERT INTO azure.cost_management.exports (
exportName,
scope,
eTag,
identity,
location,
properties
)
SELECT
'{{ exportName }}',
'{{ scope }}',
'{{ eTag }}',
'{{ identity }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified exports resource.

/*+ delete */
DELETE FROM azure.cost_management.exports
WHERE exportName = '{{ exportName }}'
AND scope = '{{ scope }}';