Skip to main content

by_ids

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

Overview

Nameby_ids
TypeResource
Idazure.resources.by_ids

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:

NameAccessible byRequired ParamsOptional ParamsDescription
create_or_updateinsertresourceIdapi-versionCreate a resource by ID.

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.

NameDatatypeDescription
resourceIdstringThe fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
api-versionstringThe API version to use for the operation.

INSERT examples

Create a resource by ID.

INSERT INTO azure.resources.by_ids (
data__plan,
data__properties,
data__kind,
data__managedBy,
data__sku,
data__identity,
resourceId,
api-version
)
SELECT
'{{ plan }}',
'{{ properties }}',
'{{ kind }}',
'{{ managedBy }}',
'{{ sku }}',
'{{ identity }}',
'{{ resourceId }}',
'{{ api-version }}'
RETURNING
id,
name,
identity,
kind,
managedBy,
plan,
properties,
sku,
systemData,
type
;