- HOME
- 提供API一覧
- resetPasswordForVirtualMachine
resetPasswordForVirtualMachine
処理概要
仮想サーバのパスワードをリセット
注意事項
・仮想サーバが停止状態(Stopped)であることを確認して実行してください。
・KDDIオフィシャルテンプレート(パスワードリセットが有効なテンプレート)から作成された仮想サーバのみパスワードリセットが可能です。
リクエスト
・リクエストパラメータ
Parameter Name | Description | Required |
id | The ID of the virtual machine | true |
・リクエストサンプル
$ ./kick_api.sh command=resetPasswordForVirtualMachine id=f16e5080-e61a-49d4-a760-542c8f02704c
レスポンス
・レスポンスボディ
Response Name | Description |
id | the ID of the virtual machine |
account | the account associated with the virtual machine |
cpunumber | the number of cpu this virtual machine is running with |
cpuspeed | the speed of each cpu |
cpuused | the amount of the vm’s CPU currently used |
created | the date when this virtual machine was created |
details | Template details in key/value pairs. |
diskioread | the read (io) of disk on the vm |
diskiowrite | the write (io) of disk on the vm |
diskkbsread | the read (bytes) of disk on the vm |
diskkbswrite | the write (bytes) of disk on the vm |
displayname | user generated name. The name of the virtual machine is returned if no displayname exists. |
displayvm | an optional field whether to the display the vm to the end user or not. |
domain | the name of the domain in which the virtual machine exists |
domainid | the ID of the domain in which the virtual machine exists |
forvirtualnetwork | the virtual network for the service offering |
group | the group name of the virtual machine |
groupid | the group ID of the virtual machine |
guestosid | Os type ID of the virtual machine |
haenable | true if high-availability is enabled, false otherwise |
hostid | the ID of the host for the virtual machine |
hostname | the name of the host for the virtual machine |
hypervisor | the hypervisor on which the template runs |
instancename | instance name of the user vm; this parameter is returned to the ROOT admin only |
isdynamicallyscalable | true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory. |
isodisplaytext | an alternate display text of the ISO attached to the virtual machine |
isoid | the ID of the ISO attached to the virtual machine |
isoname | the name of the ISO attached to the virtual machine |
keypair | ssh key-pair |
memory | the memory allocated for the virtual machine |
name | the name of the virtual machine |
networkkbsread | the incoming network traffic on the vm |
networkkbswrite | the outgoing network traffic on the host |
password | the password (if exists) of the virtual machine |
passwordenabled | true if the password rest feature is enabled, false otherwise |
project | the project name of the vm |
projectid | the project id of the vm |
publicip | public IP address id associated with vm via Static nat rule |
publicipid | public IP address id associated with vm via Static nat rule |
rootdeviceid | device ID of the root volume |
rootdevicetype | device type of the root volume |
serviceofferingid | the ID of the service offering of the virtual machine |
serviceofferingname | the name of the service offering of the virtual machine |
servicestate | State of the Service from LB rule |
state | the state of the virtual machine |
templatedisplaytext | an alternate display text of the template for the virtual machine |
templateid | the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file. |
templatename | the name of the template for the virtual machine |
zoneid | the ID of the availablility zone for the virtual machine |
zonename | the name of the availability zone for the virtual machine |
affinitygroup(*) | list of affinity groups associated with the virtual machine |
id | the ID of the affinity group |
account | the account owning the affinity group |
description | the description of the affinity group |
domain | the domain name of the affinity group |
domainid | the domain ID of the affinity group |
name | the name of the affinity group |
type | the type of the affinity group |
virtualmachineIds | virtual machine Ids associated with this affinity group |
nic(*) | the list of nics associated with vm |
id | the ID of the nic |
broadcasturi | the broadcast uri of the nic |
gateway | the gateway of the nic |
ip6address | the IPv6 address of network |
ip6cidr | the cidr of IPv6 network |
ip6gateway | the gateway of IPv6 network |
ipaddress | the ip address of the nic |
isdefault | true if nic is default, false otherwise |
isolationuri | the isolation uri of the nic |
macaddress | true if nic is default, false otherwise |
netmask | the netmask of the nic |
networkid | the ID of the corresponding network |
networkname | the name of the corresponding network |
secondaryip | the Secondary ipv4 addr of nic |
traffictype | the traffic type of the nic |
type | the type of the nic |
securitygroup(*) | list of security groups associated with the virtual machine |
id | the ID of the security group |
account | the account owning the security group |
description | the description of the security group |
domain | the domain name of the security group |
domainid | the domain ID of the security group |
name | the name of the security group |
project | the project name of the group |
projectid | the project id of the group |
egressrule(*) | the list of egress rules associated with the security group |
account | account owning the security group rule |
cidr | the CIDR notation for the base IP address of the security group rule |
endport | the ending IP of the security group rule |
icmpcode | the code for the ICMP message response |
icmptype | the type of the ICMP message response |
protocol | the protocol of the security group rule |
ruleid | the id of the security group rule |
securitygroupname | security group name |
startport | the starting IP of the security group rule |
ingressrule(*) | the list of ingress rules associated with the security group |
account | account owning the security group rule |
cidr | the CIDR notation for the base IP address of the security group rule |
endport | the ending IP of the security group rule |
icmpcode | the code for the ICMP message response |
icmptype | the type of the ICMP message response |
protocol | the protocol of the security group rule |
ruleid | the id of the security group rule |
securitygroupname | security group name |
startport | the starting IP of the security group rule |
tags(*) | the list of resource tags associated with the rule |
account | the account associated with the tag |
customer | customer associated with the tag |
domain | the domain associated with the tag |
domainid | the ID of the domain associated with the tag |
key | tag key name |
project | the project name where tag belongs to |
projectid | the project id the tag belongs to |
resourceid | id of the resource |
resourcetype | resource type |
value | tag value |
jobid | the ID of the latest async job acting on this object |
jobstatus | the current status of the latest async job acting on this object |
tags(*) | the list of resource tags associated with vm |
account | the account associated with the tag |
customer | customer associated with the tag |
domain | the domain associated with the tag |
domainid | the ID of the domain associated with the tag |
key | tag key name |
project | the project name where tag belongs to |
projectid | the project id the tag belongs to |
resourceid | id of the resource |
resourcetype | resource type |
value | tag value |
jobid | the ID of the latest async job acting on this object |
jobstatus | the current status of the latest async job acting on this object |
・レスポンスサンプル
【API実行結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<resetpasswordforvirtualmachineresponse cloud-stack-version=”4.3.0.2″>
<jobid>05aa2b00-5299-45da-95fe-314c7e77de06</jobid>
</resetpasswordforvirtualmachine>
【queryAsyncJobResultでの確認結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<queryasyncjobresultresponse cloud-stack-version=”4.3.0.2″>
<accountid>f7ff94d9-c9ef-4f79-8a51-b87dff968949</accountid>
<userid>48dc4f67-3bee-432e-a925-51503b2982d2</userid>
<cmd>org.apache.cloudstack.api.command.user.vm.ResetVMPasswordCmd</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<virtualmachine>
<id>f16e5080-e61a-49d4-a760-542c8f02704c</id>
<name>p-test01-MXXXXXXXX</name>
<displayname>p-test01-MXXXXXXXX</displayname>
<account>xxxx</account>
<domainid>5d6c8a68-59e1-4f92-b5c2-b7bf4090ea17</domainid>
<domain>MXXXXXXXX</domain>
<created>2016-09-20T20:37:23+0900</created>
<state>Running</state>
<haenable>true</haenable>
<zoneid>f4c460fd-06d9-44db-a54d-7a23b54d9133</zoneid>
<zonename>jp2-east01</zonename>
<templateid>887d7f4b-4398-4612-86ff-50966423f7d4</templateid>
<templatename>test01-template</templatename>
<templatedisplaytext>test01-template</templatedisplaytext>
<passwordenabled>true</passwordenabled>
<serviceofferingid>5f282fad-5c90-4375-95e2-2e2ba9487c07</serviceofferingid>
<serviceofferingname>Premium_6vCPU_Mem2GB</serviceofferingname>
<cpunumber>6</cpunumber>
<cpuspeed>2590</cpuspeed>
<memory>2048</memory>
<cpuused>0%</cpuused>
<networkkbsread>0</networkkbsread>
<networkkbswrite>0</networkkbswrite>
<guestosid>d4ed8d1e-c234-11e4-a399-2c600c06bb24</guestosid>
<rootdeviceid>0</rootdeviceid>
<rootdevicetype>ROOT</rootdevicetype>
<password>nT8uccbzk</password>
<nic>
<id>dc4fa009-7d76-480e-a045-3757baa2f9e3</id>
<networkid>4f73b612-af99-4a78-8c8c-3801bbe88e2f</networkid>
<networkname>PublicFrontSegmet</networkname>
<netmask>255.255.255.0</netmask>
<gateway>10.1.1.1</gateway>
<ipaddress>10.1.1.113</ipaddress>
<isolationuri>vlan://2720</isolationuri>
<broadcasturi>vlan://2720</broadcasturi>
<traffictype>Guest</traffictype>
<type>Isolated</type>
<isdefault>true</isdefault>
<macaddress>02:00:4b:c2:00:0d</macaddress>
</nic>
<nic>
<id>cf020a83-6f03-4e00-afa6-d76e076a0e63</id>
<networkid>ec3373fe-b308-4900-a283-2f028a249137</networkid>
<networkname>MonitoringNetwork</networkname>
<netmask>255.255.255.224</netmask>
<gateway>198.18.14.129</gateway>
<ipaddress>198.18.14.132</ipaddress>
<isolationuri>vlan://3001</isolationuri>
<broadcasturi>vlan://3001</broadcasturi>
<traffictype>Guest</traffictype>
<type>Shared</type>
<isdefault>false</isdefault>
<macaddress>06:4e:10:09:9c:bd</macaddress>
</nic>
<hypervisor>VMware</hypervisor>
<displayvm>true</displayvm>
<isdynamicallyscalable>true</isdynamicallyscalable>
<jobid>05aa2b00-5299-45da-95fe-314c7e77de06</jobid>
<jobstatus>0</jobstatus>
</virtualmachine>
</jobresult>
<created>2016-09-20T21:05:17+0900</created>
<jobid>05aa2b00-5299-45da-95fe-314c7e77de06</jobid>
</queryasyncjobresultresponse>