Mark and everyone else... (CC to dev list as that's where this should
really go)

> No, we used this to lock all our current registrations. We wrote 
> a script which looped through our domains and run this command. 
>
> Of course, you need the auth info on each domain to do that. 

I was just reading the API doc and noticed that you DO NOT need to set a
cookie or authenticate with username/password for the domain you are
locking.  

So those RSP's who were complaining that they can't set the lock in bulk
via the API for all domains in their RSP account because they don't
maintain the profile username/password can use this method.  I also bet
the bulk change will be even quicker since you don't need to authenticate
and get a cookie for each domain first.

The following is an example of locking without a cookie... and it does work.

$domain = 'example.com';
$lock_state = 1; # 1 = lock, 0 = unlock

  my $xcp_req = {
        action        => 'modify',
        object        => 'domain',
        attributes    => {
                data  => 'status',
                lock_state  => $lock_state,
                domain_name => $domain
        }
  };

Enjoy!


Reply via email to