diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthentication_CreateOrUpdate_Complex.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthentication_CreateOrUpdate_Complex.json new file mode 100644 index 000000000000..f7578adb40ee --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthentication_CreateOrUpdate_Complex.json @@ -0,0 +1,57 @@ +{ + "title": "BrokerAuthentication_CreateOrUpdate_Complex", + "operationId": "BrokerAuthentication_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "authenticationName": "resource-name123", + "resource": { + "properties": { + "authenticationMethods": [ + { + "method": "ServiceAccountToken", + "serviceAccountTokenSettings": { + "audiences": [ + "aio-mq" + ] + } + }, + { + "method": "X509", + "x509Settings": { + "trustedClientCaCert": "my-ca", + "authorizationAttributes": { + "root": { + "subject": "CN = Contoso Root CA Cert, OU = Engineering, C = US", + "attributes": { + "organization": "contoso" + } + }, + "intermediate": { + "subject": "CN = Contoso Intermediate CA", + "attributes": { + "city": "seattle", + "foo": "bar" + } + }, + "smart-fan": { + "subject": "CN = smart-fan", + "attributes": { + "building": "17" + } + } + } + } + } + ] + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthorization_CreateOrUpdate_Complex.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthorization_CreateOrUpdate_Complex.json new file mode 100644 index 000000000000..d7641c68a027 --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthorization_CreateOrUpdate_Complex.json @@ -0,0 +1,78 @@ +{ + "title": "BrokerAuthorization_CreateOrUpdate_Complex", + "operationId": "BrokerAuthorization_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "authorizationName": "resource-name123", + "resource": { + "properties": { + "authorizationPolicies": { + "enableCache": true, + "rules": [ + { + "principals": { + "usernames": [ + "temperature-sensor", + "humidity-sensor" + ], + "attributes": [ + { + "building": 17, + "organization": "contoso" + } + ] + }, + "brokerResources": [ + { + "method": "Connect", + "clientIds": [ + "{principal.attributes.building}*" + ] + }, + { + "method": "Publish", + "topics": [ + "sensors/{principal.attributes.building}/{principal.clientId}/telemetry/*" + ] + }, + { + "method": "Subscribe", + "topics": [ + "commands/{principal.attributes.organization}" + ] + } + ], + "stateStoreResources": [ + { + "method": "Read", + "keyType": "Pattern", + "keys": [ + "myreadkey", + "myotherkey?", + "mynumerickeysuffix[0-9]", + "clients:{principal.clientId}:*" + ] + }, + { + "method": "ReadWrite", + "keyType": "Binary", + "keys": [ + "MTE2IDEwMSAxMTUgMTE2" + ] + } + ] + } + ] + } + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthorization_CreateOrUpdate_Simple.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthorization_CreateOrUpdate_Simple.json new file mode 100644 index 000000000000..199c608d8af1 --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerAuthorization_CreateOrUpdate_Simple.json @@ -0,0 +1,59 @@ +{ + "title": "BrokerAuthorization_CreateOrUpdate_Simple", + "operationId": "BrokerAuthorization_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "authorizationName": "resource-name123", + "resource": { + "properties": { + "authorizationPolicies": { + "enableCache": true, + "rules": [ + { + "principals": { + "clientIds": [ + "my-client-id" + ], + "attributes": [ + { + "floor": "floor1", + "site": "site1" + } + ] + }, + "brokerResources": [ + { + "method": "Connect" + }, + { + "method": "Subscribe", + "topics": [ + "topic", + "topic/with/wildcard/#" + ] + } + ], + "stateStoreResources": [ + { + "method": "ReadWrite", + "keyType": "Pattern", + "keys": [ + "*" + ] + } + ] + } + ] + } + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerListener_CreateOrUpdate_Complex.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerListener_CreateOrUpdate_Complex.json new file mode 100644 index 000000000000..e1aa5cf386f1 --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerListener_CreateOrUpdate_Complex.json @@ -0,0 +1,56 @@ +{ + "title": "BrokerListener_CreateOrUpdate_Complex", + "operationId": "BrokerListener_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "listenerName": "resource-name123", + "resource": { + "properties": { + "serviceType": "LoadBalancer", + "ports": [ + { + "port": 8080, + "authenticationRef": "example-authentication", + "protocol": "WebSockets" + }, + { + "port": 8443, + "authenticationRef": "example-authentication", + "protocol": "WebSockets", + "tls": { + "mode": "Automatic", + "certManagerCertificateSpec": { + "issuerRef": { + "name": "example-issuer", + "kind": "Issuer" + } + } + } + }, + { + "port": 1883, + "authenticationRef": "example-authentication" + }, + { + "port": 8883, + "authenticationRef": "example-authentication", + "tls": { + "mode": "Manual", + "manual": { + "secretRef": "example-secret" + } + } + } + ] + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerListener_CreateOrUpdate_Simple.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerListener_CreateOrUpdate_Simple.json new file mode 100644 index 000000000000..8b6362ea91e4 --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/BrokerListener_CreateOrUpdate_Simple.json @@ -0,0 +1,25 @@ +{ + "title": "BrokerListener_CreateOrUpdate_Complex", + "operationId": "BrokerListener_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "listenerName": "resource-name123", + "resource": { + "properties": { + "ports": [ + { + "port": 1883 + } + ] + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Complex.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Complex.json new file mode 100644 index 000000000000..3ff18835db3b --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Complex.json @@ -0,0 +1,37 @@ +{ + "title": "Broker_CreateOrUpdate_Complex", + "operationId": "Broker_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "resource": { + "properties": { + "cardinality": { + "backendChain": { + "partitions": 2, + "redundancyFactor": 2, + "workers": 2 + }, + "frontend": { + "replicas": 2, + "workers": 2 + } + }, + "diskBackedMessageBuffer": { + "maxSize": "50M" + }, + "generateResourceLimits": { + "cpu": "Enabled" + }, + "memoryProfile": "Medium" + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Minimal.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Minimal.json new file mode 100644 index 000000000000..941cddf821ea --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Minimal.json @@ -0,0 +1,20 @@ +{ + "title": "Broker_CreateOrUpdate_Minimal", + "operationId": "Broker_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "resource": { + "properties": { + "memoryProfile": "Tiny" + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +} diff --git a/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Simple.json b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Simple.json new file mode 100644 index 000000000000..4eda7db01d32 --- /dev/null +++ b/specification/iotoperations/IoTOperations.Management/examples/2024-08-15-preview/Broker_CreateOrUpdate_Simple.json @@ -0,0 +1,34 @@ +{ + "title": "Broker_CreateOrUpdate_Simple", + "operationId": "Broker_CreateOrUpdate", + "parameters": { + "api-version": "2024-08-15-preview", + "subscriptionId": "F8C729F9-DF9C-4743-848F-96EE433D8E53", + "resourceGroupName": "rgiotoperations", + "instanceName": "resource-name123", + "brokerName": "resource-name123", + "resource": { + "properties": { + "cardinality": { + "backendChain": { + "partitions": 2, + "redundancyFactor": 2, + "workers": 2 + }, + "frontend": { + "replicas": 2, + "workers": 2 + } + }, + "generateResourceLimits": { + "cpu": "Enabled" + }, + "memoryProfile": "Low" + }, + "extendedLocation": { + "name": "qmbrfwcpwwhggszhrdjv", + "type": "CustomLocation" + } + } + } +}