AzureML.ManagementSDK.RemoveWebServiceEndpoint C# (CSharp) Method

RemoveWebServiceEndpoint() public method

public RemoveWebServiceEndpoint ( WorkspaceSetting setting, string webServiceId, string endpointName ) : void
setting AzureML.Contract.WorkspaceSetting
webServiceId string
endpointName string
return void
        public void RemoveWebServiceEndpoint(WorkspaceSetting setting, string webServiceId, string endpointName)
        {
            ValidateWorkspaceSetting(setting);
            Util.AuthorizationToken = setting.AuthorizationToken;
            string queryUrl = WebServiceApi + string.Format("workspaces/{0}/webservices/{1}/endpoints/{2}", setting.WorkspaceId, webServiceId, endpointName);
            HttpResult hr = Util.HttpDelete(queryUrl).Result;
            if (!hr.IsSuccess)
                throw new AmlRestApiException(hr);
        }
        #endregion