in src/appservice-rest/Arm/azure-app-service.ts [117:138]
public async getSitePublishingCredentialPolicies(): Promise<any> {
try {
var httpRequest: WebRequest = {
method: 'GET',
uri: this._client.getRequestUri(`//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/${this._slotUrl}/basicPublishingCredentialsPolicies/scm`,
{
'{resourceGroupName}': this._resourceGroup,
'{name}': this._name,
}, null, '2022-03-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 SitePublishingCredentialPolicies. " + this._getFormattedName() + ".\n" + getFormattedError(error));
}
}