A python client library to access wazo-deployd
from wazo_deployd_client import Client
client = Client('localhost', verify_certificate=False)
client.config.get()
client.status.check()
client.providers.list(recurse=True)
client.providers.list(tenant_uuid=tenant_uuid)
client.providers.list_images()
client.providers.list_locations()
client.providers.list_key_pairs()
client.providers.list_sizes()
client.providers.list_subnets()
client.providers.list_networks()
client.providers.list_regions()
client.providers.platforms.list()
client.providers.create(provider_data)
client.providers.create(provider_data, tenant_uuid=tenant_uuid)
client.providers.get(provider_uuid)
client.providers.get(provider_uuid, tenant_uuid=tenant_uuid)
client.providers.update(provider_uuid, provider_data)
client.providers.update(provider_uuid, provider_data, tenant_uuid=tenant_uuid)
client.providers.delete(provider_uuid)
client.providers.delete(provider_uuid, tenant_uuid=tenant_uuid)
client.instances.list(limit=1, offset=1, order='name', direction='desc')
client.instances.list(tenant_uuid=tenant_uuid)
client.instances.list()
# List by provider
client.instances.list(provider_uuid=provider_uuid)
client.instances.list(provider_uuid=provider_uuid, tenant_uuid=tenant_uuid)
client.instances.create(provider_uuid, instance_data)
client.instances.create(provider_uuid, instance_data, tenant_uuid=tenant_uuid)
client.instances.register(instance_data)
client.instances.register(instance_data, tenant_uuid=tenant_uuid)
client.instances.get(instance_uuid)
client.instances.get(instance_uuid, tenant_uuid=tenant_uuid)
client.instances.get_wazo(instance_uuid)
client.instances.get_wazo(instance_uuid, tenant_uuid=tenant_uuid)
client.instances.update(instance_uuid, instance_data)
client.instances.update(instance_uuid, instance_data, tenant_uuid=tenant_uuid)
client.instances.delete(provider_uuid, instance_uuid)
client.instances.delete(provider_uuid, instance_uuid, tenant_uuid=tenant_uuid)
client.instances.unregister(instance_uuid)
client.instances.unregister(instance_uuid, tenant_uuid=tenant_uuid)
client.instances.create_credential(instance_uuid, credential_data)
client.instances.create_credential(instance_uuid, credential_data, tenant_uuid=tenant_uuid)
client.instances.get_credential(instancr_uuid, credential_uuid)
client.instances.get_credential(instance_uuid, credential_uuid, tenant_uuid=tenant_uuid)
client.instances.update_credential(instance_uuid, credential_uuid, credential_data)
client.instances.update_credential(instance_uuid, credential_uuid, credential_data, tenant_uuid=tenant_uuid)
client.instances.delete_credential(instance_uuid, credential_uuid)
client.instances.delete_credential(instance_uuid, credential_uuid, tenant_uuid=tenant_uuid)
Follow the following steps to build a debian package for wazo-deployd-client manually.
- Copy the source directory to a machine with all dependencies installed
rsync -av . <builder-host>:~/wazo-deployd-client
- On the host, increment the changelog
dch -i
- Build the package
dpkg-buildpackage -us -uc