in src/appservice-rest/Arm/azure-app-service.ts [546:568]
private async _getConnectionStrings(): Promise<AzureAppServiceConfigurationDetails> {
try {
var slotUrl: string = !!this._slot ? `/slots/${this._slot}` : '';
var httpRequest: WebRequest = {
method: 'POST',
uri: this._client.getRequestUri(`//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/${slotUrl}/config/connectionstrings/list`,
{
'{resourceGroupName}': this._resourceGroup,
'{name}': this._name,
}, null, '2016-08-01')
}
var response = await this._client.beginRequest(httpRequest);
if(response.statusCode != 200) {
throw ToError(response);
}
return response.body;
}
catch(error) {
throw Error("Failed to get App service " + this._getFormattedName() + " Connection Strings.\n" + getFormattedError(error));
}
}