Windows-based Hosting::DeleteResourceRecord
This procedure modifies settings for a specified database.
Arguments
Input Arguments | Description |
---|---|
<orgLdapPath> |
The Lightweight Directory Access Protocol (LDAP) path of the owning organization. |
<preferredDomainController> |
|
<serverIdentifier> |
A string containing the dotted-quad Internet Protocol (IP) address or the fully qualified domain name (FQDN) of the server. |
<zoneName> |
A string containing the FQDN of the zone. |
<rrType> |
A string containing the RR type. |
<rrName> |
RR name to be deleted. |
<propertiesXmlString> |
Properties XML string. |
<sendCredentials> |
|
<userName> |
User name for the target DNS server. |
<userPass> |
Password. |
<commitFlag> |
Values are: {COMMIT | NOCOMMIT}. |
<debugLogLevel> |
Values are: {high | medium | low}. |
<debugCheck> |
Values are: {on | off}. |
Remarks
Method Syntax
public string DeleteResourceRecord (
string orgLdapPath,
string preferredDomainController,
string serverIdentifier,
string userName, //optional
string password, //optional
string zoneName,
string rrType,
string rrName,
string commitFlag, //optional
string debugLogLevel, //optional
string debugCheck, //optional
string propertiesXmlString,
bool sendCredentials)
Sample Code
Example XML Request
No example XML request.
Example XML Response
<response>
<data>
<orgLdapPath>LDAP://OU=WingTipToys,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</orgLdapPath>
<preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController>
<serverIdentifier>AD01-wh</serverIdentifier>
<zoneName>WingTipToys.com</zoneName>
<rrType>consolidatedmessengerDNS_AType</rrType>
<rrName>www6</rrName>
<commitFlag>COMMIT</commitFlag>
<userName>fabrikam\administrator</userName>
<password>zzzzz</password>
<properties />
</data>
</response>
Typical C# Usage
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
objWS.PreAuthenticate = true;
objWS.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = objWS.DeleteResourceRecord(orgLdapPath, preferredDomainController, serverIdentifier, userName, password, zoneName, rrType, rrName, commitFlag, debugLogLevel, debugCheck, propertiesXmlString, true);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
Applies To
Managed Windows-based Hosting Web Service for:
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
Windows-based Hosting version 4.5
Windows-based Hosting version 4.0
Windows-based Hosting version 3.5
Windows-based Hosting for Applications version 1.0