Share via


IWebmasterApi.GetBlockedUrls(String) Method

Definition

Get list of blocked pages/directories

public:
 System::Collections::Generic::List<Microsoft::Bing::Webmaster::Api::Interfaces::BlockedUrl ^> ^ GetBlockedUrls(System::String ^ siteUrl);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebGet(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest)]
public System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.BlockedUrl> GetBlockedUrls (string siteUrl);
abstract member GetBlockedUrls : string -> System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.BlockedUrl>
Public Function GetBlockedUrls (siteUrl As String) As List(Of BlockedUrl)

Parameters

siteUrl
String

Returns

Examples

XML request sample

GET /webmaster/api.svc/pox/GetBlockedUrls?siteUrl=http://example.com&apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com

XML response sample

HTTP/1.1 200 OK
Content-Length: 0

JSON request sample

POST /webmaster/api.svc/json/AddBlockedUrl?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com


{
"siteUrl":"http://example.com",
"blockedUrl":
{
"__type":"BlockedUrl:#Microsoft.Bing.Webmaster.Api",
"Date":"/Date(-62135568000000-0800)/",
"EntityType":0,
"RequestType":1,
"Url":"http://example.com/url1"
}
}

JSON response sample

HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8


{
"d":null
}
Attributes

Applies to