
--/e2eDi0V/xtL+Mc8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, In admin portal, when try to approve a host, need to select the cluster fir= st, but with rest api, /*code*/ try: api =3D API(url=3D"HOST", username=3D"USER", password=3D"PASS", ca_file=3D"ca.crt") h =3D api.hosts.get(name=3D"Atlantic") if(h.approve()): print "Host '%s' approved (Status: %s)." % (h.get_name(), h.get_status().get_state()) else: print "Approval of '%s' failed." % h.get_name() api.disconnect() except Exception as ex: print "Unexpected error: %s" % ex above code will register to the default cluster, could you give me an examp= le how to register to the custom=20 cluster instead the default? or i misunderstand some workflow, light me p= ls, thanks Regards, Mohua Li --/e2eDi0V/xtL+Mc8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJQxt9DAAoJEKa5n96c5rR6XZ4H/2T/QmlOJL6YbEv60C9CyqSF RghHd4ctDNbZvdz5ENPM6o/SVMwJW/aseTFXr4r3WbWy7ZyEgG/TI9AGUqQBoRM7 a7mvehCxzAnOwqDoAwuHtLICiMDcJaPgVXrsqomjzyQNH8atL53hwTxwUfBXR3GX W42fW2cuPh/O2TA3qAOvd3qAqEkNiJBWJ2Wl0LXUAgDzs35S6sWobIHYxwtfJHDL hBIvuTzdbKyZF25TwDDonZ5z754+6tWKigRZRV6BNtsI5cFW5W3aKRg2sFwCIyA8 OV5XAvbM2KYc0rNafS8V/bmzC+2I49QtOo9jfPn7WaVbu84j0Dz3qaROcUVpGlc= =oZfM -----END PGP SIGNATURE----- --/e2eDi0V/xtL+Mc8--