This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API Module SSL modifySslCertRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
Line 30: Line 30:
     'id' => 5,
     'id' => 5,
     'domainValidationMethods' => array(
     'domainValidationMethods' => array(
-
       'openprovider.com' => 'dns',
+
       array(
 +
        'hostName' => 'openprovider.nl',
 +
        'method' => 'admin@openprovider.nl'
 +
      ),
     ),
     ),
     ));
     ));
Line 43: Line 46:
   </credentials>
   </credentials>
   <modifySslCertRequest>
   <modifySslCertRequest>
-
     <id>28945</id>
+
     <id>5</id>
     <domainValidationMethods>
     <domainValidationMethods>
-
       <openprovider.ru>dns</openprovider.ru>
+
       <array>
 +
        <item>
 +
          <hostName>openprovider.com</hostName>
 +
          <method>dns</method>
 +
        </item>
 +
      </array>
     </domainValidationMethods>
     </domainValidationMethods>
   </modifySslCertRequest>
   </modifySslCertRequest>

Revision as of 15:57, 26 March 2015

Contents

Module SSL certificates > Modify Order

Module SSL certificates
Command name modifySslCertRequest
Use Use this call to modify the domain validation settings of an SSL certificate order
Input
Output

-

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('modifySslCertRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'id' => 5,
    'domainValidationMethods' => array(
      array(
        'hostName' => 'openprovider.nl',
        'method' => 'admin@openprovider.nl'
      ),
    ),
   ));

Raw XML

Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <modifySslCertRequest>
    <id>5</id>
    <domainValidationMethods>
      <array>
        <item>
          <hostName>openprovider.com</hostName>
          <method>dns</method>
        </item>
      </array>
    </domainValidationMethods>
  </modifySslCertRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <id>2480</id>
    </data>
  </reply>
</openXML>
Views
Personal tools