Skip to main content

broker

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

Overview

Namebroker
TypeResource
Idazure.iot_operations.broker

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
advancedobjectAdvanced settings of Broker.
cardinalityobjectThe cardinality details of the broker.
diagnosticsobjectSpec defines the desired identities of Broker diagnostics settings.
diskBackedMessageBufferobjectSettings of Disk Backed Message Buffer.
extendedLocationobjectEdge location of the resource.
generateResourceLimitsobjectThis setting controls whether Kubernetes CPU resource limits are requested. Increasing the number of replicas or workers proportionally increases the amount of CPU resources requested. If this setting is enabled and there are insufficient CPU resources, an error will be emitted.
healthStatestringThe health state of the resource. Known values are: "Available", "Degraded", "Unavailable", and "Unknown". (Available, Degraded, Unavailable, Unknown)
memoryProfilestringMemory profile of Broker. Known values are: "Tiny", "Low", "Medium", and "High". (Tiny, Low, Medium, High)
persistenceobjectThe persistence settings of the Broker.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Updating, Deleting, Accepted)
statusobjectThe status for the broker.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, instance_name, broker_name, subscription_idGet a BrokerResource.
list_by_resource_groupselectresource_group_name, instance_name, subscription_idList BrokerResource resources by InstanceResource.
create_or_updateinsertresource_group_name, instance_name, broker_name, subscription_idCreate a BrokerResource.
create_or_updatereplaceresource_group_name, instance_name, broker_name, subscription_idCreate a BrokerResource.
deletedeleteresource_group_name, instance_name, broker_name, subscription_idDelete a BrokerResource.

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
broker_namestringName of broker. Required.
instance_namestringName of instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a BrokerResource.

SELECT
id,
name,
advanced,
cardinality,
diagnostics,
diskBackedMessageBuffer,
extendedLocation,
generateResourceLimits,
healthState,
memoryProfile,
persistence,
provisioningState,
status,
systemData,
type
FROM azure.iot_operations.broker
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND instance_name = '{{ instance_name }}' -- required
AND broker_name = '{{ broker_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a BrokerResource.

INSERT INTO azure.iot_operations.broker (
properties,
extendedLocation,
resource_group_name,
instance_name,
broker_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}',
'{{ resource_group_name }}',
'{{ instance_name }}',
'{{ broker_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
properties,
systemData,
type
;

REPLACE examples

Create a BrokerResource.

REPLACE azure.iot_operations.broker
SET
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND instance_name = '{{ instance_name }}' --required
AND broker_name = '{{ broker_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
properties,
systemData,
type;

DELETE examples

Delete a BrokerResource.

DELETE FROM azure.iot_operations.broker
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND instance_name = '{{ instance_name }}' --required
AND broker_name = '{{ broker_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;