forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Communication - Telephony Service] Trunk status API (Azure#19233)
* trunkstatus 2022-07-01 preview * fix nextLink * remove pageable, fix sdk typo * add port to trunk properties * replace by health endpoint * fix overallHealth property * fix enums * update enum and add descriptive properties * enums to camelcase * remove trunkstatus folder * add health to trunk properties * create new preview * address review comments * fix example * the latest api version swaggers are in the default tag * remove unused response codes from example * fix prettier * update python and ruby tag to the latest version * Unify naming SBC->Trunk, move Extended to beginning of Trunk and SipConfiguration to suggest inheritance * bump up version * bump up the swagger version * fix errors missing enabled property * revert error code version back to new * fix typo and duplicate definition in previous reamdme versions * fix typo * address comments * update ping description * shuffle object definition to help APIview render document properly * Revert "shuffle object definition to help APIview render document properly" This reverts commit a682d6a. * remove redundant type:object on
- Loading branch information
Showing
8 changed files
with
883 additions
and
16 deletions.
There are no files selected for viewing
567 changes: 567 additions & 0 deletions
567
...ion/data-plane/SipRouting/preview/2023-01-01-preview/communicationservicessiprouting.json
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...cation/data-plane/SipRouting/preview/2023-01-01-preview/examples/GetSipConfiguration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"endpoint": "https://resourcename.communication.azure.com/" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"domains": { | ||
"xyz.biz": { | ||
"enabled": true | ||
}, | ||
"abc.biz": { | ||
"enabled": true | ||
} | ||
}, | ||
"trunks": { | ||
"vendor.xyz.biz": { | ||
"sipSignalingPort": 5061, | ||
"enabled": true | ||
}, | ||
"vendor.abc.biz": { | ||
"sipSignalingPort": 5061, | ||
"enabled": true | ||
} | ||
}, | ||
"routes": [ | ||
{ | ||
"name": "LocalRoute", | ||
"numberPattern": "^\\+1[0-9]{10}$" | ||
}, | ||
{ | ||
"name": "VendorXYZ", | ||
"description": "External route XYZ", | ||
"numberPattern": "^\\+?\\d+$", | ||
"trunks": [ | ||
"vendor.xyz.biz" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...a-plane/SipRouting/preview/2023-01-01-preview/examples/GetSipConfigurationWithExpand.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"expand": "trunks/health" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"domains": { | ||
"xyz.biz": { | ||
"enabled": true | ||
}, | ||
"abc.biz": { | ||
"enabled": true | ||
} | ||
}, | ||
"trunks": { | ||
"vendor.xyz.biz": { | ||
"sipSignalingPort": 5061, | ||
"enabled": true, | ||
"health": { | ||
"tls": { | ||
"status": "unknown" | ||
}, | ||
"ping": { | ||
"status": "unknown" | ||
}, | ||
"overall": { | ||
"status": "unknown" | ||
} | ||
} | ||
}, | ||
"vendor.abc.biz": { | ||
"sipSignalingPort": 5061, | ||
"enabled": true, | ||
"health": { | ||
"tls": { | ||
"status": "certExpiring" | ||
}, | ||
"ping": { | ||
"status": "ok" | ||
}, | ||
"overall": { | ||
"status": "inactive", | ||
"reason": "noRecentCalls" | ||
} | ||
} | ||
} | ||
}, | ||
"routes": [ | ||
{ | ||
"name": "LocalRoute", | ||
"numberPattern": "^\\+1[0-9]{10}$" | ||
}, | ||
{ | ||
"name": "VendorXYZ", | ||
"description": "External route XYZ", | ||
"numberPattern": "^\\+?\\d+$", | ||
"trunks": [ | ||
"vendor.xyz.biz" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...tion/data-plane/SipRouting/preview/2023-01-01-preview/examples/PatchSipConfiguration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"domains": { | ||
"xyz.biz": { | ||
"type": "Custom" | ||
} | ||
}, | ||
"body": { | ||
"domains": { | ||
"xyz.biz": { | ||
"enabled": true | ||
}, | ||
"abc.biz": { | ||
"enabled": true | ||
} | ||
}, | ||
"trunks": { | ||
"vendor.xyz.biz": { | ||
"sipSignalingPort": 5061, | ||
"enabled": true | ||
} | ||
}, | ||
"routes": [ | ||
{ | ||
"name": "VendorXYZ", | ||
"description": "External route XYZ", | ||
"numberPattern": "^\\+?\\d+$", | ||
"trunks": [ | ||
"vendor.xyz.biz" | ||
] | ||
} | ||
] | ||
}, | ||
"endpoint": "https://resourcename.communication.azure.com/" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"domains": { | ||
"xyz.biz": { | ||
"enabled": true | ||
}, | ||
"abc.biz": { | ||
"enabled": true | ||
} | ||
}, | ||
"trunks": { | ||
"vendor.xyz.biz": { | ||
"sipSignalingPort": 5061, | ||
"enabled": true | ||
} | ||
}, | ||
"routes": [ | ||
{ | ||
"name": "VendorXYZ", | ||
"description": "External route XYZ", | ||
"numberPattern": "^\\+?\\d+$", | ||
"trunks": [ | ||
"vendor.xyz.biz" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
105 changes: 105 additions & 0 deletions
105
...ation/data-plane/SipRouting/preview/2023-01-01-preview/examples/TestRoutesWithNumber.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-01-01-preview", | ||
"endpoint": "https://resourcename.communication.azure.com/", | ||
"targetPhoneNumber": "+14251234567", | ||
"sipConfiguration": { | ||
"domains": { | ||
"contoso.com": { | ||
"enabled": true | ||
} | ||
}, | ||
"trunks": { | ||
"seattle.contoso.com": { | ||
"sipSignalingPort": 5011, | ||
"enabled": true | ||
}, | ||
"us1.contoso.com": { | ||
"sipSignalingPort": 5012, | ||
"enabled": true | ||
}, | ||
"us2.contoso.com": { | ||
"sipSignalingPort": 5013, | ||
"enabled": true | ||
}, | ||
"russia.contoso.com": { | ||
"sipSignalingPort": 5014, | ||
"enabled": true | ||
}, | ||
"global.contoso.com": { | ||
"sipSignalingPort": 5015, | ||
"enabled": true | ||
} | ||
}, | ||
"routes": [ | ||
{ | ||
"name": "Seattle", | ||
"description": "Seattle route", | ||
"numberPattern": "^\\+1(425|206)\\d{7}$", | ||
"trunks": [ | ||
"seattle.contoso.com" | ||
] | ||
}, | ||
{ | ||
"name": "US", | ||
"description": "US route", | ||
"numberPattern": "^\\+1\\d{10}$", | ||
"trunks": [ | ||
"us1.contoso.com", | ||
"us2.contoso.com" | ||
] | ||
}, | ||
{ | ||
"name": "Russia", | ||
"description": "Russian route", | ||
"numberPattern": "^\\+7\\d+$", | ||
"trunks": [ | ||
"russia.contoso.com" | ||
] | ||
}, | ||
{ | ||
"name": "Global", | ||
"description": "Fallback route", | ||
"numberPattern": "^\\+\\d+$", | ||
"trunks": [ | ||
"global.contoso.com" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"matchingRoutes": [ | ||
{ | ||
"description": "Seattle route", | ||
"name": "Seattle", | ||
"numberPattern": "^\\+1(425|206)\\d{7}$", | ||
"trunks": [ | ||
"seattle.contoso.com" | ||
] | ||
}, | ||
{ | ||
"description": "US route", | ||
"name": "US", | ||
"numberPattern": "^\\+1\\d{10}$", | ||
"trunks": [ | ||
"us1.contoso.com", | ||
"us2.contoso.com" | ||
] | ||
}, | ||
{ | ||
"description": "Fallback route", | ||
"name": "Global", | ||
"numberPattern": "^\\+\\d+$", | ||
"trunks": [ | ||
"global.contoso.com" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters