Closed greut closed 5 years ago
$ cs -t createAffinityGroup name=test type="host anti-affinity-group GET https://api.exoscale.ch/compute?name=test&type=host+anti-affinity&apiKey=EXO4d60e5e69f0225b35cb4fa05&command=createAffinityGroup&response=json&signatureVersion=3&expires=2019-03-27T08%3A02%3A03%2B0000&signature=x8%2Fl2rYYDlaD%2F2dlPV%2BJdFrCzOc%3D 200 OK Date: Wed, 27 Mar 2019 07:51:48 GMT Content-Type: application/json;charset=utf-8 Content-Length: 128 Connection: close Referrer-Policy: no-referrer-when-downgrade X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=15724800; includeSubDomains Vary: Accept-Encoding, User-Agent X-XSS-Protection: 1; mode=block X-Request-Id: 1d1184a27621aed2e75368a2f5d05ab2 { "createaffinitygroupresponse" : {"id":"fe4f9d19-a28b-4269-a371-34ff703f0c02","jobid":"2ff75b7a-a8eb-4b05-8e16-49c2bd8cd83c"} } GET https://api.exoscale.ch/compute?jobid=2ff75b7a-a8eb-4b05-8e16-49c2bd8cd83c&apiKey=EXO4d60e5e69f0225b35cb4fa05&command=queryAsyncJobResult&response=json&signatureVersion=3&expires=2019-03-27T08%3A02%3A03%2B0000&signature=Ow6RrRKhlBdatR%2FsG8qodzHehRA%3D 200 OK Date: Wed, 27 Mar 2019 07:51:49 GMT Content-Type: application/json;charset=utf-8 Content-Length: 446 Connection: close Vary: Accept-Encoding, Accept-Encoding, User-Agent Referrer-Policy: no-referrer-when-downgrade X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=15724800; includeSubDomains X-XSS-Protection: 1; mode=block X-Request-Id: c4ab182f51eaa32e1fc9ae81a4395e7c { "queryasyncjobresultresponse" : {"userid":"64024bfa-6de0-40a1-a655-10d16be74d7f","cmd":"org.apache.cloudstack.api.command.user.affinitygroup.CreateAffinityGroupCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"affinitygroup":{"id":"fe4f9d19-a28b-4269-a371-34ff703f0c02","name":"test","type":"host anti-affinity"}},"created":"2019-03-27T08:51:48+0100","jobid":"2ff75b7a-a8eb-4b05-8e16-49c2bd8cd83c"} } { "affinitygroup": { "id": "fe4f9d19-a28b-4269-a371-34ff703f0c02", "name": "test", "type": "host anti-affinity" } } $ cs -t deleteAffinityGroup id=fe4f9d19-a28b-4269-a371-34ff703f0c02 GET https://api.exoscale.ch/compute?id=fe4f9d19-a28b-4269-a371-34ff703f0c02&apiKey=EXO4d60e5e69f0225b35cb4fa05&command=deleteAffinityGroup&response=json&signatureVersion=3&expires=2019-03-27T08%3A02%3A52%2B0000&signature=GuszxJqQLpuMVspndraUmiijpfk%3D 200 OK Date: Wed, 27 Mar 2019 07:52:37 GMT Content-Type: application/json;charset=utf-8 Content-Length: 84 Connection: close Referrer-Policy: no-referrer-when-downgrade X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=15724800; includeSubDomains Vary: Accept-Encoding, User-Agent X-XSS-Protection: 1; mode=block X-Request-Id: 0740c84fa4ac976c41a9323e141c3dec { "deleteaffinitygroupresponse" : {"jobid":"cfa4c2b0-6c0d-477f-9a95-1f6543952fcc"} } GET https://api.exoscale.ch/compute?jobid=cfa4c2b0-6c0d-477f-9a95-1f6543952fcc&apiKey=EXO4d60e5e69f0225b35cb4fa05&command=queryAsyncJobResult&response=json&signatureVersion=3&expires=2019-03-27T08%3A02%3A52%2B0000&signature=OYrQ5aRNVtecy7gcAX2v198v8N0%3D 200 OK Date: Wed, 27 Mar 2019 07:52:38 GMT Content-Type: application/json;charset=utf-8 Content-Length: 357 Connection: close Vary: Accept-Encoding, Accept-Encoding, User-Agent Referrer-Policy: no-referrer-when-downgrade X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=15724800; includeSubDomains X-XSS-Protection: 1; mode=block X-Request-Id: c7cbe0f46cc4335d51fa18a7db292fc0 { "queryasyncjobresultresponse" : {"userid":"64024bfa-6de0-40a1-a655-10d16be74d7f","cmd":"org.apache.cloudstack.api.command.user.affinitygroup.DeleteAffinityGroupCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"success":true},"created":"2019-03-27T08:52:37+0100","jobid":"cfa4c2b0-6c0d-477f-9a95-1f6543952fcc"} } { "success": true }