|
| 1 | +{ |
| 2 | + "operationId": "CommunicationsGateways_CreateOrUpdate", |
| 3 | + "title": "CreateCommunicationsGatewayResource", |
| 4 | + "parameters": { |
| 5 | + "subscriptionId": "00000000-0000-0000-0000-000000000000", |
| 6 | + "resourceGroupName": "testrg", |
| 7 | + "api-version": "2023-09-01", |
| 8 | + "name": "myname", |
| 9 | + "communicationsGatewayName": "myname", |
| 10 | + "resource": { |
| 11 | + "location": "useast", |
| 12 | + "sku": { |
| 13 | + "name": "standard" |
| 14 | + }, |
| 15 | + "properties": { |
| 16 | + "serviceLocations": [ |
| 17 | + { |
| 18 | + "name": "useast", |
| 19 | + "primaryRegionProperties": { |
| 20 | + "operatorAddresses": [ |
| 21 | + "198.51.100.1" |
| 22 | + ], |
| 23 | + "allowedSignalingSourceAddressPrefixes": [ |
| 24 | + "10.1.1.0/24" |
| 25 | + ], |
| 26 | + "allowedMediaSourceAddressPrefixes": [ |
| 27 | + "10.1.2.0/24" |
| 28 | + ] |
| 29 | + } |
| 30 | + }, |
| 31 | + { |
| 32 | + "name": "useast2", |
| 33 | + "primaryRegionProperties": { |
| 34 | + "operatorAddresses": [ |
| 35 | + "198.51.100.2" |
| 36 | + ], |
| 37 | + "allowedSignalingSourceAddressPrefixes": [ |
| 38 | + "10.2.1.0/24" |
| 39 | + ], |
| 40 | + "allowedMediaSourceAddressPrefixes": [ |
| 41 | + "10.2.2.0/24" |
| 42 | + ] |
| 43 | + } |
| 44 | + } |
| 45 | + ], |
| 46 | + "connectivity": "PublicAddress", |
| 47 | + "codecs": [ |
| 48 | + "PCMA" |
| 49 | + ], |
| 50 | + "e911Type": "Standard", |
| 51 | + "platforms": [ |
| 52 | + "OperatorConnect", |
| 53 | + "TeamsDirectRouting" |
| 54 | + ], |
| 55 | + "autoGeneratedDomainNameLabelScope": "NoReuse", |
| 56 | + "teamsVoicemailPilotNumber": "1234567890", |
| 57 | + "apiBridge": { |
| 58 | + "configureApiBridge": "enabled", |
| 59 | + "allowedAddressPrefixes": [ |
| 60 | + "198.51.100.192/26" |
| 61 | + ] |
| 62 | + }, |
| 63 | + "dnsDelegations": { |
| 64 | + "delegations": [ |
| 65 | + { |
| 66 | + "domain": "commsgw.contoso.com" |
| 67 | + } |
| 68 | + ] |
| 69 | + }, |
| 70 | + "customSipHeaders": { |
| 71 | + "headers": [ |
| 72 | + { |
| 73 | + "name": "x-contoso-commsgw-identifier" |
| 74 | + } |
| 75 | + ] |
| 76 | + } |
| 77 | + } |
| 78 | + } |
| 79 | + }, |
| 80 | + "responses": { |
| 81 | + "200": { |
| 82 | + "body": { |
| 83 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname", |
| 84 | + "name": "myname", |
| 85 | + "type": "Microsoft.VoiceServices/communicationsGateways", |
| 86 | + "location": "useast", |
| 87 | + "sku": { |
| 88 | + "name": "standard" |
| 89 | + }, |
| 90 | + "properties": { |
| 91 | + "serviceLocations": [ |
| 92 | + { |
| 93 | + "name": "useast", |
| 94 | + "primaryRegionProperties": { |
| 95 | + "operatorAddresses": [ |
| 96 | + "198.51.100.1" |
| 97 | + ], |
| 98 | + "allowedSignalingSourceAddressPrefixes": [ |
| 99 | + "10.1.1.0/24" |
| 100 | + ], |
| 101 | + "allowedMediaSourceAddressPrefixes": [ |
| 102 | + "10.1.2.0/24" |
| 103 | + ] |
| 104 | + } |
| 105 | + }, |
| 106 | + { |
| 107 | + "name": "useast2", |
| 108 | + "primaryRegionProperties": { |
| 109 | + "operatorAddresses": [ |
| 110 | + "198.51.100.2" |
| 111 | + ], |
| 112 | + "allowedSignalingSourceAddressPrefixes": [ |
| 113 | + "10.2.1.0/24" |
| 114 | + ], |
| 115 | + "allowedMediaSourceAddressPrefixes": [ |
| 116 | + "10.2.2.0/24" |
| 117 | + ] |
| 118 | + } |
| 119 | + } |
| 120 | + ], |
| 121 | + "status": "ChangePending", |
| 122 | + "connectivity": "PublicAddress", |
| 123 | + "codecs": [ |
| 124 | + "PCMA" |
| 125 | + ], |
| 126 | + "e911Type": "Standard", |
| 127 | + "platforms": [ |
| 128 | + "OperatorConnect", |
| 129 | + "TeamsDirectRouting" |
| 130 | + ], |
| 131 | + "autoGeneratedDomainNameLabelScope": "NoReuse", |
| 132 | + "autoGeneratedDomainNameLabel": "somelabel", |
| 133 | + "teamsVoicemailPilotNumber": "1234567890", |
| 134 | + "apiBridge": { |
| 135 | + "configureApiBridge": "enabled", |
| 136 | + "allowedAddressPrefixes": [ |
| 137 | + "198.51.100.192/26" |
| 138 | + ] |
| 139 | + }, |
| 140 | + "dnsDelegations": { |
| 141 | + "delegations": [ |
| 142 | + { |
| 143 | + "domain": "commsgw.contoso.com" |
| 144 | + } |
| 145 | + ] |
| 146 | + }, |
| 147 | + "customSipHeaders": { |
| 148 | + "headers": [ |
| 149 | + { |
| 150 | + "name": "x-contoso-commsgw-identifier" |
| 151 | + } |
| 152 | + ] |
| 153 | + } |
| 154 | + } |
| 155 | + } |
| 156 | + }, |
| 157 | + "201": { |
| 158 | + "body": { |
| 159 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceServices/communicationsGateways/myname", |
| 160 | + "name": "myname", |
| 161 | + "type": "Microsoft.VoiceServices/communicationsGateways", |
| 162 | + "location": "useast", |
| 163 | + "sku": { |
| 164 | + "name": "standard" |
| 165 | + }, |
| 166 | + "properties": { |
| 167 | + "status": "ChangePending", |
| 168 | + "serviceLocations": [ |
| 169 | + { |
| 170 | + "name": "useast", |
| 171 | + "primaryRegionProperties": { |
| 172 | + "operatorAddresses": [ |
| 173 | + "198.51.100.1" |
| 174 | + ], |
| 175 | + "allowedSignalingSourceAddressPrefixes": [ |
| 176 | + "10.1.1.0/24" |
| 177 | + ], |
| 178 | + "allowedMediaSourceAddressPrefixes": [ |
| 179 | + "10.1.2.0/24" |
| 180 | + ] |
| 181 | + } |
| 182 | + }, |
| 183 | + { |
| 184 | + "name": "useast2", |
| 185 | + "primaryRegionProperties": { |
| 186 | + "operatorAddresses": [ |
| 187 | + "198.51.100.2" |
| 188 | + ], |
| 189 | + "allowedSignalingSourceAddressPrefixes": [ |
| 190 | + "10.2.1.0/24" |
| 191 | + ], |
| 192 | + "allowedMediaSourceAddressPrefixes": [ |
| 193 | + "10.2.2.0/24" |
| 194 | + ] |
| 195 | + } |
| 196 | + } |
| 197 | + ], |
| 198 | + "connectivity": "PublicAddress", |
| 199 | + "codecs": [ |
| 200 | + "PCMA" |
| 201 | + ], |
| 202 | + "e911Type": "Standard", |
| 203 | + "platforms": [ |
| 204 | + "OperatorConnect", |
| 205 | + "TeamsDirectRouting" |
| 206 | + ], |
| 207 | + "autoGeneratedDomainNameLabelScope": "NoReuse", |
| 208 | + "autoGeneratedDomainNameLabel": "somelabel", |
| 209 | + "teamsVoicemailPilotNumber": "1234567890", |
| 210 | + "apiBridge": { |
| 211 | + "configureApiBridge": "enabled", |
| 212 | + "allowedAddressPrefixes": [ |
| 213 | + "198.51.100.192/26" |
| 214 | + ] |
| 215 | + }, |
| 216 | + "dnsDelegations": { |
| 217 | + "delegations": [ |
| 218 | + { |
| 219 | + "domain": "commsgw.contoso.com" |
| 220 | + } |
| 221 | + ] |
| 222 | + }, |
| 223 | + "customSipHeaders": { |
| 224 | + "headers": [ |
| 225 | + { |
| 226 | + "name": "x-contoso-commsgw-identifier" |
| 227 | + } |
| 228 | + ] |
| 229 | + } |
| 230 | + } |
| 231 | + } |
| 232 | + } |
| 233 | + } |
| 234 | +} |
0 commit comments