2016-06-17 5 views
0

プロビジョニングしているマシンまたはVMに使用するソフトレイヤーにドメイン名を登録するREST APIを探しています。REST APIを使用してソフトレイヤーにドメイン名を登録

同じコントロールポータルがするように、あなたは以下のRESTリクエスト試してみてくださいRegister New Domainするには、このクラスに http://softlayer-api-python-client.readthedocs.io/en/latest/api/managers/dns/

おかげで、 キショール

答えて

0

を使用して行うことができるようになっています

https://$user:[email protected]/rest/v3/SoftLayer_Product_Order/placeOrder 

Method: Post 

{ 
    "parameters":[ 
     { 
     "complexType":"SoftLayer_Container_Product_Order_Dns_Domain_Registration", 
     "quantity":1, 
     "packageId":0, 
     "administrativeContact":{ 
      "address1":"address test", 
      "city":"cityTest", 
      "country":"BO", 
      "email":"[email protected]", 
      "firstName":"Jhon", 
      "lastName":"Travolta", 
      "organizationName":"Company Name", 
      "phone":"7074485559", 
      "postalCode":"0591", 
      "state":"OT", 
      "type":"admin" 
     }, 
     "billingContact":{ 
      "address1":"address test", 
      "city":"cityTest", 
      "country":"BO", 
      "email":"[email protected]", 
      "firstName":"Jhon", 
      "lastName":"Travolta", 
      "organizationName":"Company Name", 
      "phone":"7074485559", 
      "postalCode":"0591", 
      "state":"OT", 
      "type":"billing" 
     }, 
     "ownerContact":{ 
      "address1":"address test", 
      "city":"cityTest", 
      "country":"BO", 
      "email":"[email protected]", 
      "firstName":"Jhon", 
      "lastName":"Travolta", 
      "organizationName":"Company Name", 
      "phone":"7074485559", 
      "postalCode":"0591", 
      "state":"OT", 
      "type":"owner" 
     }, 
     "technicalContact":{ 
      "address1":"address test", 
      "city":"cityTest", 
      "country":"BO", 
      "email":"[email protected]", 
      "firstName":"Jhon", 
      "lastName":"Travolta", 
      "organizationName":"Company Name", 
      "phone":"7074485559", 
      "postalCode":"0591", 
      "state":"OT", 
      "type":"tech" 
     }, 
     "domainRegistrationList":[ 
      { 
       "domainName":"testrcv.com", 
       "registrationPeriod":1 
      } 
     ], 
     "registrationType":"new" 
     } 
    ] 
} 

をとにかくAdd DNS Zoneにしたい場合は、以下を試してください:

https://$user:[email protected]/rest/v3/SoftLayer_Dns_Domain/createObject 

Method: Post 

{ 
    "parameters":[ 
     { 
     "name":"test.com", 
     "serial":374597345, 
     "resourceRecords":{ 

     } 
     } 
    ] 
} 

あなたのDNSゾーン内に新しいレコードを追加したい場合も、あなたは次のことを試してみてください:

https://$user:[email protected]/rest/v3/SoftLayer_Dns_Domain_ResourceRecord/createObject 

Method: Post 

{ 
    "parameters":[ 
     { 
     "domainId":1609439, 
     "ttl":900, 
     "data":"127.0.0.1", 
     "host": "@", 
     "type":"a" 
     } 
    ] 
} 

私はこの情報があなた

参考のために役立つことを願って

+0

こんにちは紅色、返信いただきありがとうございます。私は最後のAPIを試してみたところ、 "Permission denied to createObject"というエラーが出ます。間違っているかもしれないことに光を投げてください。 –

+0

例外はアクセス許可に関連しています。おそらく、あなたのアカウントにこのアクセス許可が有効になっていない可能性があります。** DNSの管理、DNSの逆引き、WHOIS **、親/ –

関連する問題