diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json new file mode 100644 index 000000000000..b5fe90e25f3a --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json @@ -0,0 +1,247 @@ +{ + "parameters": { + "api-version": "2017-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.NotificationHubs/register/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Registers the NotificationHubs Provider", + "description": "Registers the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + } + }, + { + "name": "Microsoft.NotificationHubs/unregister/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Unregisters the NotificationHubs Provider", + "description": "Unregisters the subscription for the NotifciationHubs resource provider and enables the creation of Namespaces and NotificationHubs" + } + }, + { + "name": "Microsoft.NotificationHubs/operationResults/read", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Operation results for Notification Hubs provider", + "description": "Returns operation results for Notification Hubs provider" + } + }, + { + "name": "Microsoft.NotificationHubs/CheckNamespaceAvailability/action", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Microsoft Azure Notification Hub", + "operation": "Get namespace availability.", + "description": "Checks availability of namespace under given subscription." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/write", + "display": { + "provider": "Microsoft Azure Notification Hub", + "resource": "Namespace", + "operation": "Create Or Update Namespace ", + "description": "Create a Namespace Resource and Update its properties. Tags and status of the Namespace are the properties which can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/read", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "Namespace", + "operation": "Get Namespace Resource", + "description": "Get the list of Namespace Resource Description" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/Delete", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "Namespace", + "operation": "Delete Namespace", + "description": "Delete Namespace Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/authorizationRules/write", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "Create or Update Namespace Authorization Rules", + "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/authorizationRules/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/authorizationRules/read", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "Delete Namespace Authorization Rule", + "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted. " + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "Get Namespace Listkeys", + "description": "Get the Connection String to the Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "Resource Regeneratekeys", + "description": "Regenerate the Primary or Secondary key to the Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/CheckNotificationHubAvailability/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "AuthorizationRules", + "operation": "CheckNotificationHubAvailability", + "description": "Checks whether or not a given NotificationHub name is available inside a Namespace" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/write", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub", + "operation": "Create or Update notification hub", + "description": "Create or Update notificationHub properties." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/read", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub", + "operation": "Get notification hub", + "description": "Get notification hub resource" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/Delete", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub", + "operation": "Delete notification hub", + "description": "Operation to delete notification hub resource" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules/write", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub Authorization Rule", + "operation": "Create or Update NotificationHub Authorization Rule", + "description": "Create NotificationHub Authorization Rules and Update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub AuthorizationRules", + "operation": " Get NotificationHub Authorization Rules", + "description": " Get the list of NotificationHub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules/read", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub AuthorizationRules", + "operation": " Get NotificationHub Authorization Rules", + "description": " Get the list of NotificationHub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub AuthorizationRules", + "operation": "Delete NotificationHub Authorization Rules", + "description": "Operation to delete NotificationHub Authorization Rules" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub AuthorizationRules", + "operation": "List NotificationHub keys", + "description": "Get the Connection String to NotificationHub" + } + }, + { + "name": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub AuthorizationRules", + "operation": "Resource Regeneratekeys", + "description": "Regenerate the Primary or Secondary key to the Resource" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/pnsCredentials/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub PnsCredential", + "operation": "Resource Get Notification Hub PNS Credentials", + "description": "Get All Notification Hub PNS Credentials. This includes, WNS, MPNS, APNS, GCM and Baidu credentials" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/debugSend/action", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub resource", + "operation": "Send a test push notification", + "description": "Send a test push notification" + } + }, + { + "name": "Microsoft.NotificationHubs/Namespaces/NotificationHubs/metricDefinitions/read", + "display": { + "provider": "Microsoft Azure NotificationHubs", + "resource": "NotificationHub metrics", + "operation": "Get NotificationHub metrics", + "description": "Get list of Namespace metrics Resource Descriptions" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json new file mode 100644 index 000000000000..84d19ba9971a --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "sdk-AuthRules-1788", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "location": "West Europe", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788", + "name": "sdk-AuthRules-1788", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json new file mode 100644 index 000000000000..e86818c2347b --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json new file mode 100644 index 000000000000..4c291461aac0 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": "South Central US", + "tags": null, + "properties": { + "keyName": "RootManageSharedAccessKey", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:24:51.0690674Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json new file mode 100644 index 000000000000..74949466bb05 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "RootManageSharedAccessKey", + "primaryKey": "e5FIqldZtpiWCwXfFn/MfofvpaqRpB2NzAlq+kGtoZ8=", + "secondaryKey": "p88zp8l/FSPLQyzOj2t2jMZk1k463SoFcQ13ritYjmI=", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:31:28.5201555Z", + "revision": 1 + } + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json new file mode 100644 index 000000000000..f5b04f9c6ae9 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "RootManageSharedAccessKey", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:24:51.0690674Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json new file mode 100644 index 000000000000..be2d6daa5c4a --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "RootManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "policyKey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "RootManageSharedAccessKey" + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..24dbdc12a059 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "authorizationRuleName": "MyManageSharedAccessKey", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/AuthorizationRules/MyManageSharedAccessKey", + "name": "MyManageSharedAccessKey", + "type": "Microsoft.NotificationHubs/Namespaces/AuthorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "MyManageSharedAccessKey", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T18:24:51.0690674Z", + "modifiedTime": "2018-05-02T18:24:51.0690674Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json new file mode 100644 index 000000000000..112850de67ad --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "name": "sdk-Namespace-2924", + "location": "West Europe" + } + }, + "responses": { + "200": { + "body": { + "isAvailiable": false, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/providers/Microsoft.NotificationHubs/CheckNamespaceAvailability", + "name": "mytestnamespace", + "type": "Microsoft.NotificationHubs/namespaces/checkNamespaceAvailability", + "location": "West Europe", + "tags": null + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json new file mode 100644 index 000000000000..f4a97d74f754 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:36.76Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + } + }, + "201": { + "body": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:36.76Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json new file mode 100644 index 000000000000..6b3fb662c4c2 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json new file mode 100644 index 000000000000..68bf51348d1f --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns", + "name": "nh-sdk-ns", + "type": "Microsoft.NotificationHubs/namespaces", + "location": "South Central US", + "sku": { + "name": "Basic" + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": null, + "status": "Active", + "createdAt": "2018-05-02T00:44:56.58Z", + "serviceBusEndpoint": "https://nh-sdk-ns.servicebus.windows.net:443/", + "enabled": true, + "critical": false, + "scaleUnit": "SN1-001", + "dataCenter": "SN1", + "updatedAt": "2018-05-02T01:02:19.79Z", + "namespaceType": "NotificationHub" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json new file mode 100644 index 000000000000..0aaeb2151247 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json @@ -0,0 +1,773 @@ +{ + "parameters": { + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20", + "name": "NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-91f08e47-2b04-4943-b0cd-a5fb02b88f20", + "createdAt": "2016-08-23T02:40:17.27Z", + "updatedAt": "2017-02-11T07:15:30.78Z", + "serviceBusEndpoint": "https://NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-41dc63f4-0b08-4029-b3ef-535a131bfa65", + "name": "NS-41dc63f4-0b08-4029-b3ef-535a131bfa65", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-41dc63f4-0b08-4029-b3ef-535a131bfa65", + "createdAt": "2016-08-23T03:50:38.98Z", + "updatedAt": "2017-02-11T10:42:58.003Z", + "serviceBusEndpoint": "https://NS-41dc63f4-0b08-4029-b3ef-535a131bfa65.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-df52cf51-e831-4bf2-bd92-e9885f68a996", + "name": "NS-df52cf51-e831-4bf2-bd92-e9885f68a996", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-df52cf51-e831-4bf2-bd92-e9885f68a996", + "createdAt": "2016-09-16T01:17:54.997Z", + "updatedAt": "2017-02-11T06:44:39.737Z", + "serviceBusEndpoint": "https://NS-df52cf51-e831-4bf2-bd92-e9885f68a996.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sadfsadfsadf/providers/Microsoft.NotificationHubs/namespaces/rrama-ns2", + "name": "rrama-ns2", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-ns2", + "createdAt": "2016-08-23T04:14:00.013Z", + "updatedAt": "2017-02-03T22:53:32.927Z", + "serviceBusEndpoint": "https://rrama-ns2.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-20e57600-29d0-4035-ac85-74f4c54dcda1", + "name": "NS-20e57600-29d0-4035-ac85-74f4c54dcda1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-20e57600-29d0-4035-ac85-74f4c54dcda1", + "createdAt": "2016-08-23T03:30:49.16Z", + "updatedAt": "2017-02-11T04:17:58.483Z", + "serviceBusEndpoint": "https://NS-20e57600-29d0-4035-ac85-74f4c54dcda1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-3e538a1a-58fb-4315-b2ce-76f5c944114c", + "name": "NS-3e538a1a-58fb-4315-b2ce-76f5c944114c", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-3e538a1a-58fb-4315-b2ce-76f5c944114c", + "createdAt": "2016-09-16T18:07:30.05Z", + "updatedAt": "2017-02-11T10:42:57.747Z", + "serviceBusEndpoint": "https://NS-3e538a1a-58fb-4315-b2ce-76f5c944114c.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", + "name": "NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-4e1bfdf1-0cff-4e86-ae80-cdcac4873039", + "createdAt": "2016-09-16T01:01:58.73Z", + "updatedAt": "2017-02-11T03:02:59.8Z", + "serviceBusEndpoint": "https://NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", + "name": "NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03", + "createdAt": "2016-08-23T03:22:45.327Z", + "updatedAt": "2017-02-11T06:08:01.207Z", + "serviceBusEndpoint": "https://NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-c05e9df3-7737-44ee-a321-15f6e0545b97", + "name": "NS-c05e9df3-7737-44ee-a321-15f6e0545b97", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-c05e9df3-7737-44ee-a321-15f6e0545b97", + "createdAt": "2016-08-05T03:29:19.75Z", + "updatedAt": "2017-02-11T08:10:35.527Z", + "serviceBusEndpoint": "https://NS-c05e9df3-7737-44ee-a321-15f6e0545b97.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-dcb4152c-231b-4c16-a683-07cc6b38fa46", + "name": "NS-dcb4152c-231b-4c16-a683-07cc6b38fa46", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-dcb4152c-231b-4c16-a683-07cc6b38fa46", + "createdAt": "2016-08-05T03:34:35.363Z", + "updatedAt": "2017-02-11T05:33:00.957Z", + "serviceBusEndpoint": "https://NS-dcb4152c-231b-4c16-a683-07cc6b38fa46.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-f501f5e6-1f24-439b-8982-9af665156d40", + "name": "NS-f501f5e6-1f24-439b-8982-9af665156d40", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-f501f5e6-1f24-439b-8982-9af665156d40", + "createdAt": "2016-09-16T01:25:55.707Z", + "updatedAt": "2017-02-11T07:42:59.687Z", + "serviceBusEndpoint": "https://NS-f501f5e6-1f24-439b-8982-9af665156d40.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", + "name": "NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30", + "createdAt": "2016-08-23T02:32:08.227Z", + "updatedAt": "2017-02-11T06:32:57.77Z", + "serviceBusEndpoint": "https://NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", + "name": "NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-8a5e3b4e-4e97-4d85-9083-cd33536c9d71", + "createdAt": "2016-09-16T00:54:05.103Z", + "updatedAt": "2017-02-11T10:43:50.313Z", + "serviceBusEndpoint": "https://NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-6520cc09-01ac-40a3-bc09-c5c431116e92", + "name": "NS-6520cc09-01ac-40a3-bc09-c5c431116e92", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-6520cc09-01ac-40a3-bc09-c5c431116e92", + "createdAt": "2016-09-16T01:49:59.243Z", + "updatedAt": "2017-02-11T08:15:36.95Z", + "serviceBusEndpoint": "https://NS-6520cc09-01ac-40a3-bc09-c5c431116e92.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-bfba6d5c-a425-42d9-85db-0f4da770e29a", + "name": "NS-bfba6d5c-a425-42d9-85db-0f4da770e29a", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-bfba6d5c-a425-42d9-85db-0f4da770e29a", + "createdAt": "2016-08-05T03:23:32.083Z", + "updatedAt": "2017-02-11T09:02:57.433Z", + "serviceBusEndpoint": "https://NS-bfba6d5c-a425-42d9-85db-0f4da770e29a.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-43b136b4-8716-40b2-97c5-0d77cac0062c", + "name": "NS-43b136b4-8716-40b2-97c5-0d77cac0062c", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-43b136b4-8716-40b2-97c5-0d77cac0062c", + "createdAt": "2016-08-23T03:14:50.577Z", + "updatedAt": "2017-02-11T09:23:01.067Z", + "serviceBusEndpoint": "https://NS-43b136b4-8716-40b2-97c5-0d77cac0062c.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-7c0443de-5f88-450c-b574-83f60a097dd1", + "name": "NS-7c0443de-5f88-450c-b574-83f60a097dd1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-7c0443de-5f88-450c-b574-83f60a097dd1", + "createdAt": "2016-08-23T04:07:15.397Z", + "updatedAt": "2017-02-11T04:03:03.097Z", + "serviceBusEndpoint": "https://NS-7c0443de-5f88-450c-b574-83f60a097dd1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-62dd7753-a5f9-42fd-a354-ca38a4505d69", + "name": "NS-62dd7753-a5f9-42fd-a354-ca38a4505d69", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-62dd7753-a5f9-42fd-a354-ca38a4505d69", + "createdAt": "2016-09-16T01:33:50.45Z", + "updatedAt": "2017-02-11T05:35:33.053Z", + "serviceBusEndpoint": "https://NS-62dd7753-a5f9-42fd-a354-ca38a4505d69.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-ae18a18c-97ab-4089-965d-8acbf4794091", + "name": "NS-ae18a18c-97ab-4089-965d-8acbf4794091", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-ae18a18c-97ab-4089-965d-8acbf4794091", + "createdAt": "2016-08-23T02:43:36.517Z", + "updatedAt": "2017-02-11T12:40:30.587Z", + "serviceBusEndpoint": "https://NS-ae18a18c-97ab-4089-965d-8acbf4794091.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", + "name": "NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11", + "createdAt": "2016-09-16T00:46:03.773Z", + "updatedAt": "2017-02-11T04:43:54.56Z", + "serviceBusEndpoint": "https://NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", + "name": "NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44", + "createdAt": "2016-08-23T03:59:12.1Z", + "updatedAt": "2017-02-11T06:33:52.23Z", + "serviceBusEndpoint": "https://NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-d9337efd-9b27-454c-b2a5-dcfea56920d9", + "name": "NS-d9337efd-9b27-454c-b2a5-dcfea56920d9", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-d9337efd-9b27-454c-b2a5-dcfea56920d9", + "createdAt": "2016-08-05T03:45:09.27Z", + "updatedAt": "2017-02-11T06:20:31.863Z", + "serviceBusEndpoint": "https://NS-d9337efd-9b27-454c-b2a5-dcfea56920d9.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a", + "name": "NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-ad5ae732-abea-4e62-9de0-c90de0ddec0a", + "createdAt": "2016-08-23T02:34:36.447Z", + "updatedAt": "2017-02-11T06:15:31.607Z", + "serviceBusEndpoint": "https://NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-d447fb03-c7da-40fe-b5eb-14f36888837b", + "name": "NS-d447fb03-c7da-40fe-b5eb-14f36888837b", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-d447fb03-c7da-40fe-b5eb-14f36888837b", + "createdAt": "2016-08-05T00:53:46.697Z", + "updatedAt": "2017-02-11T11:09:41.26Z", + "serviceBusEndpoint": "https://NS-d447fb03-c7da-40fe-b5eb-14f36888837b.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/RapscallionResources/providers/Microsoft.NotificationHubs/namespaces/ReproSB", + "name": "ReproSB", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:reprosb", + "createdAt": "2017-02-27T19:29:34.523Z", + "updatedAt": "2017-02-27T19:29:58.64Z", + "serviceBusEndpoint": "https://ReproSB.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-4c90097f-19a8-42e7-bb3c-4ac088994719", + "name": "NS-4c90097f-19a8-42e7-bb3c-4ac088994719", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-4c90097f-19a8-42e7-bb3c-4ac088994719", + "createdAt": "2016-09-16T17:35:32.61Z", + "updatedAt": "2017-02-11T09:13:52.27Z", + "serviceBusEndpoint": "https://NS-4c90097f-19a8-42e7-bb3c-4ac088994719.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-1-23-17", + "name": "rrama-1-23-17", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-1-23-17", + "createdAt": "2017-01-23T22:54:40.907Z", + "updatedAt": "2017-02-04T00:53:28.777Z", + "serviceBusEndpoint": "https://rrama-1-23-17.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", + "name": "NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-5191e541-8e4e-4229-9fdc-b89f6c3e7f12", + "createdAt": "2016-09-16T17:43:25.71Z", + "updatedAt": "2017-02-11T11:05:31.89Z", + "serviceBusEndpoint": "https://NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-be903820-3533-46e8-90e4-72c132411848", + "name": "NS-be903820-3533-46e8-90e4-72c132411848", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-be903820-3533-46e8-90e4-72c132411848", + "createdAt": "2016-08-05T03:24:01.923Z", + "updatedAt": "2017-02-11T10:09:42.513Z", + "serviceBusEndpoint": "https://NS-be903820-3533-46e8-90e4-72c132411848.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-namespace1", + "name": "rrama-namespace1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-namespace1", + "createdAt": "2016-08-05T00:47:22.963Z", + "updatedAt": "2016-08-05T00:47:27.297Z", + "serviceBusEndpoint": "https://rrama-namespace1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9", + "name": "NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-a3c38e9b-32a3-4c51-85d7-263150a8dda9", + "createdAt": "2016-09-16T00:38:02.517Z", + "updatedAt": "2017-02-11T05:03:55.96Z", + "serviceBusEndpoint": "https://NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", + "name": "NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6", + "createdAt": "2016-08-23T03:42:40.01Z", + "updatedAt": "2017-02-11T06:33:02.363Z", + "serviceBusEndpoint": "https://NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", + "name": "NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-e6536f77-0d1b-4a6b-8f42-29cc15b2930a", + "createdAt": "2016-08-05T04:28:10.71Z", + "updatedAt": "2017-02-11T08:43:51.587Z", + "serviceBusEndpoint": "https://NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:59.35Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/rrama-sb1", + "name": "rrama-sb1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:rrama-sb1", + "createdAt": "2017-05-01T21:47:34.903Z", + "updatedAt": "2017-05-02T02:10:03.083Z", + "serviceBusEndpoint": "https://rrama-sb1.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/RapscallionResources/providers/Microsoft.NotificationHubs/namespaces/WhackWhack", + "name": "WhackWhack", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:whackwhack", + "createdAt": "2016-10-10T23:39:01.347Z", + "updatedAt": "2017-02-04T00:56:32.687Z", + "serviceBusEndpoint": "https://WhackWhack.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", + "name": "NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c", + "createdAt": "2016-09-16T17:51:27.73Z", + "updatedAt": "2017-02-11T08:19:43.383Z", + "serviceBusEndpoint": "https://NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", + "name": "NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:ns-e0cab401-6df8-465d-8d4a-da9a9e55cf0e", + "createdAt": "2016-08-05T01:14:25.613Z", + "updatedAt": "2017-02-11T12:33:01.727Z", + "serviceBusEndpoint": "https://NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e.servicebus.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo1", + "name": "bn3-rrama-foo1", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "East US 2", + "tags": {}, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo1", + "createdAt": "2017-04-28T23:54:26.927Z", + "updatedAt": "2017-04-28T23:54:26.927Z", + "serviceBusEndpoint": "https://bn3-rrama-foo1.servicebus.int7.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo3", + "name": "bn3-rrama-foo3", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "East US 2", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo3", + "createdAt": "2017-04-29T00:24:09.907Z", + "updatedAt": "2017-04-29T00:24:33.233Z", + "serviceBusEndpoint": "https://bn3-rrama-foo3.servicebus.int7.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/bn3-rrama-foo2", + "name": "bn3-rrama-foo2", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "East US 2", + "tags": {}, + "properties": { + "provisioningState": "Created", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:bn3-rrama-foo2", + "createdAt": "2017-04-28T23:57:40.82Z", + "updatedAt": "2017-04-28T23:57:40.82Z", + "serviceBusEndpoint": "https://bn3-rrama-foo2.servicebus.int7.windows-int.net:443/" + } + }, + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.NotificationHubs/namespaces/db3-rrama-foo2", + "name": "db3-rrama-foo2", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "North Europe", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:db3-rrama-foo2", + "createdAt": "2017-04-29T00:10:43.463Z", + "updatedAt": "2017-04-29T00:11:09.133Z", + "serviceBusEndpoint": "https://db3-rrama-foo2.servicebus.int7.windows-int.net:443/" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json new file mode 100644 index 000000000000..a791caa3bee4 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "resourceGroupName": "5ktrial" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924", + "name": "sdk-Namespace-2924", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40:sdk-namespace-2924", + "createdAt": "2017-05-25T22:26:36.76Z", + "updatedAt": "2017-05-25T22:26:59.35Z", + "serviceBusEndpoint": "https://sdk-Namespace-2924.servicebus.windows-int.net:443/" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json new file mode 100644 index 000000000000..be0099342fc8 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-3285", + "name": "sdk-Namespace-3285", + "type": "Microsoft.NotificationHubs/Namespaces", + "location": "South Central US", + "tags": { + "tag3": "value3", + "tag4": "value4" + }, + "properties": { + "provisioningState": "Updating", + "createdAt": "2017-05-25T23:07:58.17Z", + "serviceBusEndpoint": "https://sdk-Namespace-3285.servicebus.windows-int.net:443/" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json new file mode 100644 index 000000000000..d18a966e0c69 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json new file mode 100644 index 000000000000..9ef8936a3515 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json new file mode 100644 index 000000000000..244bc2963e3b --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json new file mode 100644 index 000000000000..50dacd68f559 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + }, + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultFullSharedAccessSignature", + "name": "DefaultFullSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": "West Europe", + "tags": null, + "properties": { + "keyName": "DefaultFullSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen", + "Manage", + "Send" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json new file mode 100644 index 000000000000..d59024e1591c --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "sdk-AuthRules-5800", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-notificationHubs-2317", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "sdk-AuthRules-5800" + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json new file mode 100644 index 000000000000..8c83650c1015 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "policyKey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=#################################", + "secondaryConnectionString": "Endpoint=sb://nh-sdk-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=#################################", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "keyName": "DefaultListenSharedAccessSignature" + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..f4efc20bd184 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "authorizationRuleName": "DefaultListenSharedAccessSignature", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature", + "name": "DefaultListenSharedAccessSignature", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules", + "location": null, + "tags": null, + "properties": { + "keyName": "DefaultListenSharedAccessSignature", + "primaryKey": "#################################", + "secondaryKey": "#################################", + "claimType": "SharedAccessKey", + "claimValue": "None", + "rights": [ + "Listen" + ], + "createdTime": "2018-05-02T00:45:22.0150024Z", + "modifiedTime": "2018-05-02T00:45:22.0150024Z" + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json new file mode 100644 index 000000000000..3c74dbc0c57b --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "namespaceName": "locp-newns", + "resourceGroupName": "5ktrial", + "parameters": { + "name": "sdktest", + "location": "West Europe" + } + }, + "responses": { + "200": { + "body": { + "isAvailiable": true, + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourcegroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/locp-newns/CheckNotificationHubAvailability", + "name": "sdktest", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/checkNotificationHubAvailability", + "location": "West Europe", + "tags": null + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json new file mode 100644 index 000000000000..759bf43b86df --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "parameters": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json new file mode 100644 index 000000000000..5ad65b1529a5 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json new file mode 100644 index 000000000000..3d7eedffabc9 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "notificationHubName": "nh-sdk-hub", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json new file mode 100644 index 000000000000..40af498162f9 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "5ktrial", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json new file mode 100644 index 000000000000..080b5b54c577 --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "resourceGroupName": "5ktrial", + "namespaceName": "nh-sdk-ns", + "notificationHubName": "nh-sdk-hub", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub/pnsCredentials", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs/pnsCredentials", + "location": "West Europe", + "tags": null, + "properties": { + "mpnsCredential": { + "properties": { + "thumbprint": "#################################" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubUpdate.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubUpdate.json new file mode 100644 index 000000000000..7fff0cc3a6fb --- /dev/null +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubUpdate.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "namespaceName": "nh-sdk-ns", + "resourceGroupName": "sdkresourceGroup", + "notificationHubName": "sdk-notificationHubs-8708", + "api-version": "2017-04-01", + "subscriptionId": "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40", + "properties": { + "properties": { + "maxSizeInMegabytes": 1024, + "maxDeliveryCount": 5, + "enableExpress": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub", + "name": "nh-sdk-hub", + "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", + "location": "South Central US", + "tags": null, + "properties": { + "registrationTtl": "10675199.02:48:05.4775807", + "authorizationRules": [] + } + } + } + } +} \ No newline at end of file diff --git a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json index fd16cb9a3ee2..8a2e7b6e6be4 100644 --- a/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json +++ b/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/notificationhubs.json @@ -34,11 +34,52 @@ } }, "paths": { + "/providers/Microsoft.NotificationHubs/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationsList": { + "$ref": "./examples/NHOperationsList.json" + } + }, + "description": "Lists all of the available NotificationHubs REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "NotificationHubs error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability": { "post": { "tags": [ "Namespaces" ], + "x-ms-examples": { + "NameSpaceCheckNameAvailability": { + "$ref": "./examples/Namespaces/NHNameSpaceCheckNameAvailability.json" + } + }, "operationId": "Namespaces_CheckAvailability", "description": "Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name.", "parameters": [ @@ -68,1972 +109,2085 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNameAvailability": { - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Name_CheckAvailability", - "description": "Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name.", - "parameters": [ - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityRequestParameters" - }, - "description": "The namespace name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Checks if the Namespace name is a valid availabile name", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { - "put": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_CreateOrUpdate", - "description": "Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", - "externalDocs": { - "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" - }, - "description": "Parameters supplied to create a Namespace Resource." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Namespace is Create/Update", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "200": { - "description": "Namespace is Create/Update", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}": { + "put": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceCreate": { + "$ref": "./examples/Namespaces/NHNameSpaceCreate.json" } }, - "patch": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_Patch", - "description": "Patches the existing namespace", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespacePatchParameters" - }, - "description": "Parameters supplied to patch a Namespace Resource." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace is Updated", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - } - } + "operationId": "Namespaces_CreateOrUpdate", + "description": "Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", + "externalDocs": { + "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj856303.aspx" }, - "delete": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_Delete", - "description": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", - "externalDocs": { - "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj856296.aspx" + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "Namespace is already Deleted" - }, - "200": { - "description": "Namespace is deleted" - }, - "202": { - "description": "Namespace delete request has been accepted" - } + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_Get", - "description": "Returns the description for the specified namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" }, - { - "$ref": "#/parameters/SubscriptionIdParameter" + "description": "Parameters supplied to create a Namespace Resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace is Create/Update", + "schema": { + "$ref": "#/definitions/NamespaceResource" } - ], - "responses": { - "200": { - "description": "Get Namespace", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } + }, + "201": { + "description": "Namespace is Create/Update", + "schema": { + "$ref": "#/definitions/NamespaceResource" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}": { - "put": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", - "description": "Creates an authorization rule for a namespace", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Aauthorization Rule Name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" - }, - "description": "The shared access authorization rule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace Authorization Rule is Created/Updated", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } + "patch": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceUpdate": { + "$ref": "./examples/Namespaces/NHNameSpaceUpdate.json" } }, - "delete": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_DeleteAuthorizationRule", - "description": "Deletes a namespace authorization rule", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Authorization Rule Name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "Namespace AuthorizationRule is already deleted" + "operationId": "Namespaces_Patch", + "description": "Patches the existing namespace", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespacePatchParameters" }, - "200": { - "description": "Namespace AuthorizationRule is deleted" - } + "description": "Parameters supplied to patch a Namespace Resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } - }, - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_GetAuthorizationRule", - "description": "Gets an authorization rule for a namespace by name.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name" - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Get the Namespace AuthorizationRule", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } + ], + "responses": { + "200": { + "description": "Namespace is Updated", + "schema": { + "$ref": "#/definitions/NamespaceResource" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_List", - "description": "Lists the available namespaces within a resourceGroup.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Lists all Namespaces with the ResourceGroup", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - } + "delete": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceDelete": { + "$ref": "./examples/Namespaces/NHNameSpaceDelete.json" + } + }, + "operationId": "Namespaces_Delete", + "description": "Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace.", + "externalDocs": { + "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj856296.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + { + "$ref": "#/parameters/SubscriptionIdParameter" } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListAll", - "description": "Lists all the available namespaces within the subscription irrespective of the resourceGroups.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Gets all the Namespaces within the subscription irrespective of the ResourceGroup", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - } + ], + "responses": { + "200": { + "description": "Namespace is deleted" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "202": { + "description": "Namespace delete request has been accepted" + }, + "204": { + "description": "Namespace is already Deleted" } - } + }, + "x-ms-long-running-operation": true }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules": { - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListAuthorizationRules", - "description": "Gets the authorization rules for a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Get the List of AuthorizationRules of a Namespace", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - } + "get": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceGet": { + "$ref": "./examples/Namespaces/NHNameSpaceGet.json" + } + }, + "operationId": "Namespaces_Get", + "description": "Returns the description for the specified namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListKeys", - "description": "Gets the Primary and Secondary ConnectionStrings to the namespace ", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The connection string of the namespace for the specified authorizationRule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Gets the Namespace AuthorizationRule's Primary keys and Secondary keys along with the ConnectionStrings", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } + ], + "responses": { + "200": { + "description": "Get Namespace", + "schema": { + "$ref": "#/definitions/NamespaceResource" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_RegenerateKeys", - "description": "Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The connection string of the namespace for the specified authorizationRule." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PolicykeyResource" - }, - "description": "Parameters supplied to regenerate the Namespace Authorization Rule Key." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Regenerate the Primary/Secondary Key and returns the Keys and the connection string", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceAuthorizationRuleCreate": { + "$ref": "./examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { - "post": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_CheckAvailability", - "description": "Checks the availability of the given notificationHub in a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckAvailabilityParameters" - }, - "description": "The notificationHub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" + }, + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "description": "Creates an authorization rule for a namespace", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Aauthorization Rule Name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Checks if the NotificationHub name is a valid availabile name", - "schema": { - "$ref": "#/definitions/CheckAvailabilityResult" - } - } + "description": "The shared access authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkHubAvailability": { - "post": { - "tags": [ - "NotificationHubs" - ], - "operationId": "Hubs_CheckAvailability", - "description": "Checks the availability of the given notificationHub in a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityRequestParameters" - }, - "description": "The notificationHub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Checks if the NotificationHub name is a valid availabile name", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResponse" - } + ], + "responses": { + "200": { + "description": "Namespace Authorization Rule is Created/Updated", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { - "put": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_CreateOrUpdate", - "description": "Creates/Update a NotificationHub in a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NotificationHubCreateOrUpdateParameters" - }, - "description": "Parameters supplied to the create/update a NotificationHub Resource." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "NotificationHub is Created/Updated", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - }, - "201": { - "description": "NotificationHub is Created/Updated", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - } + "delete": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceAuthorizationRuleDelete": { + "$ref": "./examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json" } }, - "delete": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_Delete", - "description": "Deletes a notification hub associated with a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace is deleted" - } + "operationId": "Namespaces_DeleteAuthorizationRule", + "description": "Deletes a namespace authorization rule", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Authorization Rule Name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } - }, - "get": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_Get", - "description": "Lists the notification hubs associated with a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Get the NotificationHub", - "schema": { - "$ref": "#/definitions/NotificationHubResource" - } - } + ], + "responses": { + "200": { + "description": "Namespace AuthorizationRule is deleted" + }, + "204": { + "description": "Namespace AuthorizationRule is already deleted" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}": { - "put": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", - "description": "Creates/Updates an authorization rule for a NotificationHub", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Authorization Rule Name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" - }, - "description": "The shared access authorization rule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "NotificationHub AuthorizationRule is Created/Updated", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } + "get": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceAuthorizationRuleGet": { + "$ref": "./examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json" } }, - "delete": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_DeleteAuthorizationRule", - "description": "Deletes a notificationHub authorization rule", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Authorization Rule Name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "NotificationHub AuthorizationRule is already deleted" - }, - "200": { - "description": "NotificationHub AuthorizationRule is deleted" - } + "operationId": "Namespaces_GetAuthorizationRule", + "description": "Gets an authorization rule for a namespace by name.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name" + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } - }, - "get": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_GetAuthorizationRule", - "description": "Gets an authorization rule for a NotificationHub by name.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Get NotificationHub AuthorizationRule", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } + ], + "responses": { + "200": { + "description": "Get the Namespace AuthorizationRule", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { - "get": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_List", - "description": "Lists the notification hubs associated with a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Get all NotificationHubs within a Namespace", - "schema": { - "$ref": "#/definitions/NotificationHubListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceListByResourceGroup": { + "$ref": "./examples/Namespaces/NHNameSpaceListByResourceGroup.json" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules": { - "get": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_ListAuthorizationRules", - "description": "Gets the authorization rules for a NotificationHub.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name" - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Get all NotificationHub AuthorizationRules", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - } + }, + "operationId": "Namespaces_List", + "description": "Lists the available namespaces within a resourceGroup.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_ListKeys", - "description": "Gets the Primary and Secondary ConnectionStrings to the NotificationHub ", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The connection string of the NotificationHub for the specified authorizationRule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Gets the Namespace AuthorizationRule's Primary keys and Secondary keys along with the ConnectionStrings", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } + ], + "responses": { + "200": { + "description": "Lists all Namespaces with the ResourceGroup", + "schema": { + "$ref": "#/definitions/NamespaceListResult" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_RegenerateKeys", - "description": "Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The connection string of the NotificationHub for the specified authorizationRule." + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceList": { + "$ref": "./examples/Namespaces/NHNameSpaceList.json" + } + }, + "operationId": "Namespaces_ListAll", + "description": "Lists all the available namespaces within the subscription irrespective of the resourceGroups.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Gets all the Namespaces within the subscription irrespective of the ResourceGroup", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules": { + "get": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceAuthorizationRuleListAll": { + "$ref": "./examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json" + } + }, + "operationId": "Namespaces_ListAuthorizationRules", + "description": "Gets the authorization rules for a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get the List of AuthorizationRules of a Namespace", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceAuthorizationRuleListKey": { + "$ref": "./examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json" + } + }, + "operationId": "Namespaces_ListKeys", + "description": "Gets the Primary and Secondary ConnectionStrings to the namespace ", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The connection string of the namespace for the specified authorizationRule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Gets the Namespace AuthorizationRule's Primary keys and Secondary keys along with the ConnectionStrings", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "x-ms-examples": { + "NameSpaceAuthorizationRuleRegenrateKey": { + "$ref": "./examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json" + } + }, + "operationId": "Namespaces_RegenerateKeys", + "description": "Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The connection string of the namespace for the specified authorizationRule." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicykeyResource" }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PolicykeyResource" - }, - "description": "Parameters supplied to regenerate the NotificationHub Authorization Rule Key." + "description": "Parameters supplied to regenerate the Namespace Authorization Rule Key." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Regenerate the Primary/Secondary Key and returns the Keys and the connection string", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability": { + "post": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationHubCheckNameAvailability": { + "$ref": "./examples/NotificationHubs/NotificationHubCheckNameAvailability.json" + } + }, + "operationId": "NotificationHubs_CheckNotificationHubAvailability", + "description": "Checks the availability of the given notificationHub in a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckAvailabilityParameters" }, - { - "$ref": "#/parameters/ApiVersionParameter" + "description": "The notificationHub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Checks if the NotificationHub name is a valid availabile name", + "schema": { + "$ref": "#/definitions/CheckAvailabilityResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}": { + "put": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubCreate": { + "$ref": "./examples/NotificationHubs/NotificationHubCreate.json" + } + }, + "operationId": "NotificationHubs_CreateOrUpdate", + "description": "Creates/Update a NotificationHub in a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NotificationHubCreateOrUpdateParameters" }, - { - "$ref": "#/parameters/SubscriptionIdParameter" + "description": "Parameters supplied to the create/update a NotificationHub Resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "NotificationHub is Created/Updated", + "schema": { + "$ref": "#/definitions/NotificationHubResource" } - ], - "responses": { - "200": { - "description": "Regenerate the Primary/Secondary Key and returns the Keys and the connection string", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } + }, + "201": { + "description": "NotificationHub is Created/Updated", + "schema": { + "$ref": "#/definitions/NotificationHubResource" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { - "post": { - "tags": [ - "NotificationHubs" - ], - "operationId": "NotificationHubs_GetPnsCredentials", - "description": "Lists the PNS Credentials associated with a notification hub .", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "notificationHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The notification hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" + "delete": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubDelete": { + "$ref": "./examples/NotificationHubs/NotificationHubDelete.json" + } + }, + "operationId": "NotificationHubs_Delete", + "description": "Deletes a notification hub associated with a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace is deleted" + } + } + }, + "get": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubGet": { + "$ref": "./examples/NotificationHubs/NotificationHubGet.json" + } + }, + "operationId": "NotificationHubs_Get", + "description": "Lists the notification hubs associated with a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get the NotificationHub", + "schema": { + "$ref": "#/definitions/NotificationHubResource" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubAuthorizationRuleCreate": { + "$ref": "./examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json" + } + }, + "operationId": "NotificationHubs_CreateOrUpdateAuthorizationRule", + "description": "Creates/Updates an authorization rule for a NotificationHub", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Authorization Rule Name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" }, - { - "$ref": "#/parameters/SubscriptionIdParameter" + "description": "The shared access authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "NotificationHub AuthorizationRule is Created/Updated", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } - ], - "responses": { - "200": { - "description": "Gets all the NotificationHub PNS credentials", - "schema": { - "$ref": "#/definitions/PnsCredentialsResource" - } + } + } + }, + "delete": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubAuthorizationRuleDelete": { + "$ref": "./examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json" + } + }, + "operationId": "NotificationHubs_DeleteAuthorizationRule", + "description": "Deletes a notificationHub authorization rule", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Authorization Rule Name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "NotificationHub AuthorizationRule is deleted" + }, + "204": { + "description": "NotificationHub AuthorizationRule is already deleted" + } + } + }, + "get": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubAuthorizationRuleGet": { + "$ref": "./examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json" + } + }, + "operationId": "NotificationHubs_GetAuthorizationRule", + "description": "Gets an authorization rule for a NotificationHub by name.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name" + }, + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get NotificationHub AuthorizationRule", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs": { + "get": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubListByNameSpace": { + "$ref": "./examples/NotificationHubs/NotificationHubListByNameSpace.json" + } + }, + "operationId": "NotificationHubs_List", + "description": "Lists the notification hubs associated with a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get all NotificationHubs within a Namespace", + "schema": { + "$ref": "#/definitions/NotificationHubListResult" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "definitions": { - "CheckNameAvailabilityRequestParameters": { - "properties": { - "Name": { - "type": "string", - "description": "Resource name" - }, - "Type": { - "readOnly": true, - "type": "string", - "description": "Resource type" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules": { + "get": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubAuthorizationRuleListAll": { + "$ref": "./examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json" } }, - "required": [ - "Name" - ], - "description": "Parameters supplied to the Check Name Availability for Namespace and NotificationHubs." - }, - "CheckNameAvailabilityResponse": { - "properties": { - "NameAvailable": { - "type": "boolean", - "description": "Checks if the namespace name is available" + "operationId": "NotificationHubs_ListAuthorizationRules", + "description": "Gets the authorization rules for a NotificationHub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." }, - "Reason": { + { + "name": "namespaceName", + "in": "path", + "required": true, "type": "string", - "description": "States the reason due to which the namespace name is not available" + "description": "The namespace name" }, - "Message": { + { + "name": "notificationHubName", + "in": "path", + "required": true, "type": "string", - "description": "The messsage returned when checking for namespace name availability" + "description": "The notification hub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Get all NotificationHub AuthorizationRules", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "CheckAvailabilityParameters": { - "properties": { - "id": { - "readOnly": true, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubAuthorizationRuleListKey": { + "$ref": "./examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json" + } + }, + "operationId": "NotificationHubs_ListKeys", + "description": "Gets the Primary and Secondary ConnectionStrings to the NotificationHub ", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, "type": "string", - "description": "Resource Id" + "description": "The name of the resource group." }, - "name": { + { + "name": "namespaceName", + "in": "path", + "required": true, "type": "string", - "description": "Resource name" + "description": "The namespace name." }, - "type": { - "readOnly": true, + { + "name": "notificationHubName", + "in": "path", + "required": true, "type": "string", - "description": "Resource type" + "description": "The notification hub name." }, - "location": { + { + "name": "authorizationRuleName", + "in": "path", + "required": true, "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "description": "The connection string of the NotificationHub for the specified authorizationRule." }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The sku of the created namespace" + { + "$ref": "#/parameters/ApiVersionParameter" }, - "isAvailiable": { - "type": "boolean", - "description": "True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false." + { + "$ref": "#/parameters/SubscriptionIdParameter" } - }, - "required": [ - "name", - "location" ], - "description": "Parameters supplied to the Check Name Availability for Namespace and NotificationHubs." - }, - "CheckAvailabilityResult": { - "properties": { - "isAvailiable": { - "type": "boolean", - "description": "True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false." + "responses": { + "200": { + "description": "Gets the Namespace AuthorizationRule's Primary keys and Secondary keys along with the ConnectionStrings", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationhubAuthorizationRuleRegenrateKey": { + "$ref": "./examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json" } }, - "allOf": [ + "operationId": "NotificationHubs_RegenerateKeys", + "description": "Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule", + "parameters": [ { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a CheckAvailibility resource." - }, - "NamespaceProperties": { - "properties": { - "name": { - "type": "string", - "description": "The name of the namespace." - }, - "provisioningState": { + "name": "resourceGroupName", + "in": "path", + "required": true, "type": "string", - "description": "Provisioning state of the Namespace." + "description": "The name of the resource group." }, - "region": { - "externalDocs": { - "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" - }, + { + "name": "namespaceName", + "in": "path", + "required": true, "type": "string", - "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe" + "description": "The namespace name." }, - "status": { - "externalDocs": { - "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" - }, + { + "name": "notificationHubName", + "in": "path", + "required": true, "type": "string", - "description": "Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting" + "description": "The notification hub name." }, - "createdAt": { + { + "name": "authorizationRuleName", + "in": "path", + "required": true, "type": "string", - "format": "date-time", - "description": "The time the namespace was created." + "description": "The connection string of the NotificationHub for the specified authorizationRule." }, - "serviceBusEndpoint": { - "externalDocs": { - "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PolicykeyResource" }, - "type": "string", - "description": "Endpoint you can use to perform NotificationHub operations." + "description": "Parameters supplied to regenerate the NotificationHub Authorization Rule Key." }, - "subscriptionId": { + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Regenerate the Primary/Secondary Key and returns the Keys and the connection string", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials": { + "post": { + "tags": [ + "NotificationHubs" + ], + "x-ms-examples": { + "notificationHubPnsCredentials": { + "$ref": "./examples/NotificationHubs/NotificationHubPnsCredentials.json" + } + }, + "operationId": "NotificationHubs_GetPnsCredentials", + "description": "Lists the PNS Credentials associated with a notification hub .", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, "type": "string", - "description": "The Id of the Azure subscription associated with the namespace." + "description": "The name of the resource group." }, - "scaleUnit": { + { + "name": "namespaceName", + "in": "path", + "required": true, "type": "string", - "description": "ScaleUnit where the namespace gets created" + "description": "The namespace name." }, - "enabled": { - "type": "boolean", - "description": "Whether or not the namespace is currently enabled." + { + "name": "notificationHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The notification hub name." }, - "critical": { - "type": "boolean", - "description": "Whether or not the namespace is set as Critical." + { + "$ref": "#/parameters/ApiVersionParameter" }, - "namespaceType": { - "type": "string", - "description": "The namespace type.", - "enum": [ - "Messaging", - "NotificationHub" - ], - "x-ms-enum": { - "name": "NamespaceType", - "modelAsString": false - } - } - }, - "description": "Namespace properties." - }, - "NamespaceCreateOrUpdateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NamespaceProperties", - "description": "Properties of the Namespace." - } - }, - "required": [ - "location" - ], - "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/parameters/SubscriptionIdParameter" } ], - "description": "Parameters supplied to the CreateOrUpdate Namespace operation." - }, - "NamespacePatchParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The sku of the created namespace" + "responses": { + "200": { + "description": "Gets all the NotificationHub PNS credentials", + "schema": { + "$ref": "#/definitions/PnsCredentialsResource" + } } - }, - "description": "Parameters supplied to the Patch Namespace operation." - }, - "NamespaceResource": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NamespaceProperties", - "description": "Properties of the Namespace." + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result of the request to list NotificationHubs operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "description": "List of NotificationHubs operations supported by the Microsoft.NotificationHubs resource provider.", + "items": { + "$ref": "#/definitions/Operation" } }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a Namespace resource." - }, - "SharedAccessAuthorizationRuleProperties": { - "properties": { - "rights": { - "type": "array", - "items": { + "nextLink": { + "readOnly": true, + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "A NotificationHubs REST API operation", + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Operation name: {provider}/{resource}/{operation}" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "readOnly": true, "type": "string", - "enum": [ - "Manage", - "Send", - "Listen" - ], - "x-ms-enum": { - "name": "AccessRights", - "modelAsString": false - } + "description": "Service provider: Microsoft.NotificationHubs" }, - "description": "The rights associated with the rule." + "resource": { + "readOnly": true, + "type": "string", + "description": "Resource on which the operation is performed: Invoice, etc." + }, + "operation": { + "readOnly": true, + "type": "string", + "description": "Operation type: Read, write, delete, etc." + } } + } + } + }, + "ErrorResponse": { + "description": "Error reponse indicates NotificationHubs service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "description": "Error code.", + "type": "string" }, - "description": "SharedAccessAuthorizationRule properties." - }, - "SharedAccessAuthorizationRuleCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", - "description": "Properties of the Namespace AuthorizationRules." - } + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "CheckAvailabilityParameters": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" }, - "required": [ - "properties" - ], - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules." - }, - "SharedAccessAuthorizationRuleResource": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", - "description": "Pproperties of the Namespace AuthorizationRule." - } + "name": { + "type": "string", + "description": "Resource name" }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a Namespace AuthorizationRules." - }, - "NamespaceListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/NamespaceResource" - }, - "description": "Result of the List Namespace operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of Namespaces" - } + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" }, - "description": "The response of the List Namespace operation." - }, - "SharedAccessAuthorizationRuleListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - }, - "description": "Result of the List AuthorizationRules operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules" - } + "location": { + "type": "string", + "description": "Resource location" }, - "description": "The response of the List Namespace operation." - }, - "ResourceListKeys": { - "properties": { - "primaryConnectionString": { - "type": "string", - "description": "PrimaryConnectionString of the AuthorizationRule." - }, - "secondaryConnectionString": { - "type": "string", - "description": "SecondaryConnectionString of the created AuthorizationRule" - }, - "primaryKey": { - "type": "string", - "description": "PrimaryKey of the created AuthorizationRule." - }, - "secondaryKey": { - "type": "string", - "description": "SecondaryKey of the created AuthorizationRule" + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "keyName": { - "type": "string", - "description": "KeyName of the created AuthorizationRule" - } + "description": "Resource tags" }, - "description": "Namespace/NotificationHub Connection String" - }, - "PolicykeyResource": { - "properties": { - "policyKey": { - "type": "string", - "description": "Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key." - } + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the created namespace" }, - "description": "Namespace/NotificationHub Regenerate Keys" + "isAvailiable": { + "type": "boolean", + "description": "True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false." + } }, - "ApnsCredentialProperties": { - "properties": { - "apnsCertificate": { - "type": "string", - "description": "The APNS certificate." - }, - "certificateKey": { - "type": "string", - "description": "The certificate key." - }, - "endpoint": { - "type": "string", - "description": "The endpoint of this credential." - }, - "thumbprint": { - "type": "string", - "description": "The Apns certificate Thumbprint" - }, - "keyId": { - "type": "string", - "description": "A 10-character key identifier (kid) key, obtained from your developer account" + "required": [ + "name", + "location" + ], + "description": "Parameters supplied to the Check Name Availability for Namespace and NotificationHubs." + }, + "CheckAvailabilityResult": { + "properties": { + "isAvailiable": { + "type": "boolean", + "description": "True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a CheckAvailibility resource." + }, + "NamespaceProperties": { + "properties": { + "name": { + "type": "string", + "description": "The name of the namespace." + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the Namespace." + }, + "region": { + "externalDocs": { + "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" }, - "appName": { - "type": "string", - "description": "The name of the application" + "type": "string", + "description": "Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan WestNorth EuropeWest Europe" + }, + "metricId": { + "readOnly": true, + "type": "string", + "description": "Identifier for Azure Insights metrics" + }, + "status": { + "externalDocs": { + "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" }, - "appId": { - "type": "string", - "description": "The issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account" + "type": "string", + "description": "Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The time the namespace was created." + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "description": "The time the namespace was updated." + }, + "serviceBusEndpoint": { + "externalDocs": { + "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" }, - "token": { - "type": "string", - "description": "Provider Authentication Token, obtained through your developer account" - } + "type": "string", + "description": "Endpoint you can use to perform NotificationHub operations." + }, + "subscriptionId": { + "type": "string", + "description": "The Id of the Azure subscription associated with the namespace." + }, + "scaleUnit": { + "type": "string", + "description": "ScaleUnit where the namespace gets created" + }, + "enabled": { + "type": "boolean", + "description": "Whether or not the namespace is currently enabled." + }, + "critical": { + "type": "boolean", + "description": "Whether or not the namespace is set as Critical." }, - "description": "Description of a NotificationHub ApnsCredential." + "dataCenter": { + "type": "string", + "description": "Data center for the namespace" + }, + "namespaceType": { + "type": "string", + "description": "The namespace type.", + "enum": [ + "Messaging", + "NotificationHub" + ], + "x-ms-enum": { + "name": "NamespaceType", + "modelAsString": false + } + } }, - "ApnsCredential": { + "description": "Namespace properties." + }, + "NamespaceCreateOrUpdateParameters": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ApnsCredentialProperties", - "description": "Properties of NotificationHub ApnsCredential." - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/NamespaceProperties", + "description": "Properties of the Namespace." + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Parameters supplied to the CreateOrUpdate Namespace operation." + }, + "NamespacePatchParameters": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, - "description": "Description of a NotificationHub ApnsCredential." + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the created namespace" + } }, - "WnsCredentialProperties": { + "description": "Parameters supplied to the Patch Namespace operation." + }, + "NamespaceResource": { + "properties": { "properties": { - "packageSid": { - "type": "string", - "description": "The package ID for this credential." - }, - "secretKey": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NamespaceProperties", + "description": "Properties of the Namespace." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a Namespace resource." + }, + "SharedAccessAuthorizationRuleProperties": { + "properties": { + "rights": { + "type": "array", + "items": { "type": "string", - "description": "The secret key." + "enum": [ + "Manage", + "Send", + "Listen" + ], + "x-ms-enum": { + "name": "AccessRights", + "modelAsString": false + } }, - "windowsLiveEndpoint": { - "type": "string", - "description": "The Windows Live endpoint." - } + "description": "The rights associated with the rule." + }, + "primaryKey": { + "readOnly": true, + "type": "string", + "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." + }, + "secondaryKey": { + "readOnly": true, + "type": "string", + "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." + }, + "keyName": { + "readOnly": true, + "type": "string", + "description": "A string that describes the authorization rule." + }, + "claimType": { + "readOnly": true, + "type": "string", + "description": "A string that describes the claim type" + }, + "claimValue": { + "readOnly": true, + "type": "string", + "description": "A string that describes the claim value" + }, + "modifiedTime": { + "readOnly": true, + "type": "string", + "description": "The last modified time for this rule" }, - "description": "Description of a NotificationHub WnsCredential." + "createdTime": { + "readOnly": true, + "type": "string", + "description": "The created time for this rule" + }, + "revision": { + "readOnly": true, + "type": "integer", + "description": "The revision number for the rule" + } }, - "WnsCredential": { + "description": "SharedAccessAuthorizationRule properties." + }, + "SharedAccessAuthorizationRuleCreateOrUpdateParameters": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/WnsCredentialProperties", - "description": "Properties of NotificationHub WnsCredential." - } - }, - "description": "Description of a NotificationHub WnsCredential." + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", + "description": "Properties of the Namespace AuthorizationRules." + } }, - "GcmCredentialProperties": { + "required": [ + "properties" + ], + "description": "Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules." + }, + "SharedAccessAuthorizationRuleResource": { + "properties": { "properties": { - "gcmEndpoint": { - "type": "string", - "description": "The GCM endpoint." - }, - "googleApiKey": { - "type": "string", - "description": "The Google API key." - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties", + "description": "Pproperties of the Namespace AuthorizationRule." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a Namespace AuthorizationRules." + }, + "NamespaceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NamespaceResource" + }, + "description": "Result of the List Namespace operation." }, - "description": "Description of a NotificationHub GcmCredential." + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of Namespaces" + } }, - "GcmCredential": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GcmCredentialProperties", - "description": "Properties of NotificationHub GcmCredential." - } + "description": "The response of the List Namespace operation." + }, + "SharedAccessAuthorizationRuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + }, + "description": "Result of the List AuthorizationRules operation." }, - "description": "Description of a NotificationHub GcmCredential." + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules" + } }, - "MpnsCredentialProperties": { - "properties": { - "mpnsCertificate": { - "type": "string", - "description": "The MPNS certificate." - }, - "certificateKey": { - "type": "string", - "description": "The certificate key for this credential." - }, - "thumbprint": { - "type": "string", - "description": "The Mpns certificate Thumbprint" - } + "description": "The response of the List Namespace operation." + }, + "ResourceListKeys": { + "properties": { + "primaryConnectionString": { + "type": "string", + "description": "PrimaryConnectionString of the AuthorizationRule." + }, + "secondaryConnectionString": { + "type": "string", + "description": "SecondaryConnectionString of the created AuthorizationRule" + }, + "primaryKey": { + "type": "string", + "description": "PrimaryKey of the created AuthorizationRule." }, - "description": "Description of a NotificationHub MpnsCredential." + "secondaryKey": { + "type": "string", + "description": "SecondaryKey of the created AuthorizationRule" + }, + "keyName": { + "type": "string", + "description": "KeyName of the created AuthorizationRule" + } }, - "MpnsCredential": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MpnsCredentialProperties", - "description": "Properties of NotificationHub MpnsCredential." - } + "description": "Namespace/NotificationHub Connection String" + }, + "PolicykeyResource": { + "properties": { + "policyKey": { + "type": "string", + "description": "Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key." + } + }, + "description": "Namespace/NotificationHub Regenerate Keys" + }, + "ApnsCredentialProperties": { + "properties": { + "apnsCertificate": { + "type": "string", + "description": "The APNS certificate." + }, + "certificateKey": { + "type": "string", + "description": "The certificate key." + }, + "endpoint": { + "type": "string", + "description": "The endpoint of this credential." + }, + "thumbprint": { + "type": "string", + "description": "The Apns certificate Thumbprint" }, - "description": "Description of a NotificationHub MpnsCredential." + "keyId": { + "type": "string", + "description": "A 10-character key identifier (kid) key, obtained from your developer account" + }, + "appName": { + "type": "string", + "description": "The name of the application" + }, + "appId": { + "type": "string", + "description": "The issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account" + }, + "token": { + "type": "string", + "description": "Provider Authentication Token, obtained through your developer account" + } }, - "AdmCredentialProperties": { + "description": "Description of a NotificationHub ApnsCredential." + }, + "ApnsCredential": { + "properties": { "properties": { - "clientId": { - "type": "string", - "description": "The client identifier." - }, - "clientSecret": { - "type": "string", - "description": "The credential secret access key." - }, - "authTokenUrl": { - "type": "string", - "description": "The URL of the authorization token." - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/ApnsCredentialProperties", + "description": "Properties of NotificationHub ApnsCredential." + } + }, + "description": "Description of a NotificationHub ApnsCredential." + }, + "WnsCredentialProperties": { + "properties": { + "packageSid": { + "type": "string", + "description": "The package ID for this credential." }, - "description": "Description of a NotificationHub AdmCredential." + "secretKey": { + "type": "string", + "description": "The secret key." + }, + "windowsLiveEndpoint": { + "type": "string", + "description": "The Windows Live endpoint." + } }, - "AdmCredential": { + "description": "Description of a NotificationHub WnsCredential." + }, + "WnsCredential": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AdmCredentialProperties", - "description": "Properties of NotificationHub AdmCredential." - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/WnsCredentialProperties", + "description": "Properties of NotificationHub WnsCredential." + } + }, + "description": "Description of a NotificationHub WnsCredential." + }, + "GcmCredentialProperties": { + "properties": { + "gcmEndpoint": { + "type": "string", + "description": "The GCM endpoint." }, - "description": "Description of a NotificationHub AdmCredential." + "googleApiKey": { + "type": "string", + "description": "The Google API key." + } }, - "BaiduCredentialProperties": { + "description": "Description of a NotificationHub GcmCredential." + }, + "GcmCredential": { + "properties": { "properties": { - "baiduApiKey": { - "type": "string", - "description": "Baidu Api Key." - }, - "baiduEndPoint": { - "type": "string", - "description": "Baidu Endpoint." - }, - "baiduSecretKey": { - "type": "string", - "description": "Baidu Secret Key" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/GcmCredentialProperties", + "description": "Properties of NotificationHub GcmCredential." + } + }, + "description": "Description of a NotificationHub GcmCredential." + }, + "MpnsCredentialProperties": { + "properties": { + "mpnsCertificate": { + "type": "string", + "description": "The MPNS certificate." + }, + "certificateKey": { + "type": "string", + "description": "The certificate key for this credential." }, - "description": "Description of a NotificationHub BaiduCredential." + "thumbprint": { + "type": "string", + "description": "The Mpns certificate Thumbprint" + } }, - "BaiduCredential": { + "description": "Description of a NotificationHub MpnsCredential." + }, + "MpnsCredential": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BaiduCredentialProperties", - "description": "Properties of NotificationHub BaiduCredential." - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/MpnsCredentialProperties", + "description": "Properties of NotificationHub MpnsCredential." + } + }, + "description": "Description of a NotificationHub MpnsCredential." + }, + "AdmCredentialProperties": { + "properties": { + "clientId": { + "type": "string", + "description": "The client identifier." + }, + "clientSecret": { + "type": "string", + "description": "The credential secret access key." }, - "description": "Description of a NotificationHub BaiduCredential." + "authTokenUrl": { + "type": "string", + "description": "The URL of the authorization token." + } }, - "NotificationHubProperties": { + "description": "Description of a NotificationHub AdmCredential." + }, + "AdmCredential": { + "properties": { "properties": { - "name": { - "type": "string", - "description": "The NotificationHub name." - }, - "registrationTtl": { - "type": "string", - "description": "The RegistrationTtl of the created NotificationHub" - }, - "authorizationRules": { - "type": "array", - "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" - }, - "description": "The AuthorizationRules of the created NotificationHub" - }, - "apnsCredential": { - "$ref": "#/definitions/ApnsCredential", - "description": "The ApnsCredential of the created NotificationHub" - }, - "wnsCredential": { - "$ref": "#/definitions/WnsCredential", - "description": "The WnsCredential of the created NotificationHub" - }, - "gcmCredential": { - "$ref": "#/definitions/GcmCredential", - "description": "The GcmCredential of the created NotificationHub" - }, - "mpnsCredential": { - "$ref": "#/definitions/MpnsCredential", - "description": "The MpnsCredential of the created NotificationHub" - }, - "admCredential": { - "$ref": "#/definitions/AdmCredential", - "description": "The AdmCredential of the created NotificationHub" - }, - "baiduCredential": { - "$ref": "#/definitions/BaiduCredential", - "description": "The BaiduCredential of the created NotificationHub" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/AdmCredentialProperties", + "description": "Properties of NotificationHub AdmCredential." + } + }, + "description": "Description of a NotificationHub AdmCredential." + }, + "BaiduCredentialProperties": { + "properties": { + "baiduApiKey": { + "type": "string", + "description": "Baidu Api Key." + }, + "baiduEndPoint": { + "type": "string", + "description": "Baidu Endpoint." }, - "description": "NotificationHub properties." + "baiduSecretKey": { + "type": "string", + "description": "Baidu Secret Key" + } }, - "NotificationHubCreateOrUpdateParameters": { + "description": "Description of a NotificationHub BaiduCredential." + }, + "BaiduCredential": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NotificationHubProperties", - "description": "Properties of the NotificationHub." - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/BaiduCredentialProperties", + "description": "Properties of NotificationHub BaiduCredential." + } + }, + "description": "Description of a NotificationHub BaiduCredential." + }, + "NotificationHubProperties": { + "properties": { + "name": { + "type": "string", + "description": "The NotificationHub name." }, - "required": [ - "location", - "properties" - ], - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Parameters supplied to the CreateOrUpdate NotificationHub operation." + "registrationTtl": { + "type": "string", + "description": "The RegistrationTtl of the created NotificationHub" + }, + "authorizationRules": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + "description": "The AuthorizationRules of the created NotificationHub" + }, + "apnsCredential": { + "$ref": "#/definitions/ApnsCredential", + "description": "The ApnsCredential of the created NotificationHub" + }, + "wnsCredential": { + "$ref": "#/definitions/WnsCredential", + "description": "The WnsCredential of the created NotificationHub" + }, + "gcmCredential": { + "$ref": "#/definitions/GcmCredential", + "description": "The GcmCredential of the created NotificationHub" + }, + "mpnsCredential": { + "$ref": "#/definitions/MpnsCredential", + "description": "The MpnsCredential of the created NotificationHub" + }, + "admCredential": { + "$ref": "#/definitions/AdmCredential", + "description": "The AdmCredential of the created NotificationHub" + }, + "baiduCredential": { + "$ref": "#/definitions/BaiduCredential", + "description": "The BaiduCredential of the created NotificationHub" + } }, - "NotificationHubResource": { + "description": "NotificationHub properties." + }, + "NotificationHubCreateOrUpdateParameters": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NotificationHubProperties", - "description": "Properties of the NotificationHub." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a NotificationHub Resource." + "x-ms-client-flatten": true, + "$ref": "#/definitions/NotificationHubProperties", + "description": "Properties of the NotificationHub." + } }, - "PnsCredentialsResource": { + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Parameters supplied to the CreateOrUpdate NotificationHub operation." + }, + "NotificationHubResource": { + "properties": { "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PnsCredentialsProperties", - "description": "NotificationHub PNS Credentials." - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a NotificationHub PNS Credentials." + "x-ms-client-flatten": true, + "$ref": "#/definitions/NotificationHubProperties", + "description": "Properties of the NotificationHub." + } }, - "PnsCredentialsProperties": { + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a NotificationHub Resource." + }, + "PnsCredentialsResource": { + "properties": { "properties": { - "apnsCredential": { - "$ref": "#/definitions/ApnsCredential", - "description": "The ApnsCredential of the created NotificationHub" - }, - "wnsCredential": { - "$ref": "#/definitions/WnsCredential", - "description": "The WnsCredential of the created NotificationHub" - }, - "gcmCredential": { - "$ref": "#/definitions/GcmCredential", - "description": "The GcmCredential of the created NotificationHub" - }, - "mpnsCredential": { - "$ref": "#/definitions/MpnsCredential", - "description": "The MpnsCredential of the created NotificationHub" - }, - "admCredential": { - "$ref": "#/definitions/AdmCredential", - "description": "The AdmCredential of the created NotificationHub" - }, - "baiduCredential": { - "$ref": "#/definitions/BaiduCredential", - "description": "The BaiduCredential of the created NotificationHub" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/PnsCredentialsProperties", + "description": "NotificationHub PNS Credentials." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a NotificationHub PNS Credentials." + }, + "PnsCredentialsProperties": { + "properties": { + "apnsCredential": { + "$ref": "#/definitions/ApnsCredential", + "description": "The ApnsCredential of the created NotificationHub" + }, + "wnsCredential": { + "$ref": "#/definitions/WnsCredential", + "description": "The WnsCredential of the created NotificationHub" + }, + "gcmCredential": { + "$ref": "#/definitions/GcmCredential", + "description": "The GcmCredential of the created NotificationHub" + }, + "mpnsCredential": { + "$ref": "#/definitions/MpnsCredential", + "description": "The MpnsCredential of the created NotificationHub" }, - "description": "Description of a NotificationHub PNS Credentials." + "admCredential": { + "$ref": "#/definitions/AdmCredential", + "description": "The AdmCredential of the created NotificationHub" + }, + "baiduCredential": { + "$ref": "#/definitions/BaiduCredential", + "description": "The BaiduCredential of the created NotificationHub" + } }, - "NotificationHubListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/NotificationHubResource" - }, - "description": "Result of the List NotificationHub operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of NotificationHub" - } + "description": "Description of a NotificationHub PNS Credentials." + }, + "NotificationHubListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/NotificationHubResource" + }, + "description": "Result of the List NotificationHub operation." }, - "description": "The response of the List NotificationHub operation." + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of NotificationHub" + } }, - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" + "description": "The response of the List NotificationHub operation." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The sku of the created namespace" - } + "description": "Resource tags" }, - "required": [ - "location" - ], - "x-ms-azure-resource": true + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the created namespace" + } }, - "SubResource": { - "properties": { - "id": { - "type": "string", - "description": "Resource Id" - } - }, - "x-ms-azure-resource": true + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id" + } }, - "Sku": { - "properties": { - "name": { - "type": "string", - "description": "Name of the notification hub sku", - "enum": [ - "Free", - "Basic", - "Standard" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true - } - }, - "tier": { - "type": "string", - "description": "The tier of particular sku" - }, - "size": { - "type": "string", - "description": "The Sku size" - }, - "family": { - "type": "string", - "description": "The Sku Family" - }, - "capacity": { - "type": "integer", - "description": "The capacity of the resource" + "x-ms-azure-resource": true + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "Name of the notification hub sku", + "enum": [ + "Free", + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true } }, - "required": [ - "name" - ], - "description": "The Sku description for a namespace" - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + "tier": { + "type": "string", + "description": "The tier of particular sku" + }, + "size": { + "type": "string", + "description": "The Sku size" + }, + "family": { + "type": "string", + "description": "The Sku Family" + }, + "capacity": { + "type": "integer", + "description": "The capacity of the resource" + } }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } + "required": [ + "name" + ], + "description": "The Sku description for a namespace" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." } - } \ No newline at end of file + } +} \ No newline at end of file