Home
last modified time | relevance | path

Searched refs:droplet_id (Results 1 – 25 of 26) sorted by relevance

12

/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/digitalocean/plugins/modules/
H A Ddigital_ocean_droplet.py237 def get_by_id(self, droplet_id): argument
238 if not droplet_id:
240 response = self.rest.get("droplets/{0}".format(droplet_id))
369 droplet_id = droplet.get("id", None)
403 droplet_id = droplet_data.get("id", None)
404 if droplet_id is not None:
407 json_data = self.ensure_power_on(droplet_id)
442 def ensure_power_on(self, droplet_id): argument
447 response = self.rest.get("droplets/{0}".format(droplet_id))
559 def ensure_power_off(self, droplet_id): argument
[all …]
H A Ddigital_ocean_block_storage.py186 def attach_detach_block_storage(self, method, volume_name, region, droplet_id): argument
191 "droplet_id": droplet_id,
282 droplet_id = self.get_key_or_fail("droplet_id")
285 if attached_droplet_id == droplet_id:
292 "attach", volume_name, region, droplet_id
299 droplet_id = self.get_key_or_fail("droplet_id")
301 "detach", volume_name, region, droplet_id
332 droplet_id=dict(type="int"),
H A Ddigital_ocean_floating_ip.py225 droplet_id = module.params["droplet_id"]
236 if droplet_id is not None and module.params["ip"] is not None:
326 droplet_id = droplet.get("id", None)
327 if droplet_id is not None:
328 if str(droplet_id) == module.params["droplet_id"]:
360 droplet_id=dict(required=False),
H A Ddigital_ocean_firewall.py381 droplet_ids = [str(droplet_id) for droplet_id in droplet_ids]
433 droplet_ids = [str(droplet_id) for droplet_id in droplet_ids]
H A Ddigital_ocean_snapshot.py198 droplet_id = self.module.params["droplet_id"]
205 "droplets/{0}/actions".format(str(droplet_id)), data=data
289 droplet_id=dict(type="str"),
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/modules/cloud/digital_ocean/
H A Ddigital_ocean_block_storage.py159 def attach_detach_block_storage(self, method, volume_name, region, droplet_id): argument
164 'droplet_id': droplet_id
227 droplet_id = self.get_key_or_fail('droplet_id')
230 if attached_droplet_id == droplet_id:
234 changed_status = self.attach_detach_block_storage('attach', volume_name, region, droplet_id)
240 droplet_id = self.get_key_or_fail('droplet_id')
241 changed_status = self.attach_detach_block_storage('detach', volume_name, region, droplet_id)
271 droplet_id=dict(type='int')
H A Ddigital_ocean_droplet.py195 def get_by_id(self, droplet_id): argument
196 if not droplet_id:
198 response = self.rest.get('droplets/{0}'.format(droplet_id))
279 def ensure_power_on(self, droplet_id): argument
282 response = self.rest.get('droplets/{0}'.format(droplet_id))
H A Ddigital_ocean_floating_ip.py201 droplet_id = module.params['droplet_id']
207 if droplet_id is not None and module.params['ip'] is not None:
294 droplet_id=dict(required=False),
/dports/net/cloud-init/cloud-init-21.4/cloudinit/sources/
H A DDataSourceDigitalOcean.py51 (is_do, droplet_id) = self._get_sysinfo()
57 LOG.info("Running on DigitalOcean. droplet_id=%s", droplet_id)
68 self.metadata['instance-id'] = md.get('droplet_id', droplet_id)
69 self.metadata['local-hostname'] = md.get('hostname', droplet_id)
/dports/www/py-python-digitalocean/python-digitalocean-1.16.0/digitalocean/
H A DVolume.py121 def attach(self, droplet_id, region): argument
133 "droplet_id": droplet_id,
137 def detach(self, droplet_id, region): argument
149 "droplet_id": droplet_id,
H A DAction.py19 self.droplet_id = None
41 if not self.droplet_id:
46 self.droplet_id,
H A DFloatingIP.py53 params={'droplet_id': self.droplet_id})
88 def assign(self, droplet_id): argument
98 params={"type": "assign", "droplet_id": droplet_id}
H A DMetadata.py16 droplet_id = None variable in Metadata
46 return "<Metadata: %s>" % (self.droplet_id)
H A DManager.py99 def get_droplet(self, droplet_id): argument
103 return Droplet.get_object(api_token=self.tokens, droplet_id=droplet_id)
H A DDroplet.py104 def get_object(cls, api_token, droplet_id): argument
111 droplet = cls(token=api_token, id=droplet_id)
594 action.droplet_id = self.id
/dports/net/cloud-init/cloud-init-21.4/cloudinit/sources/helpers/
H A Ddigitalocean.py203 droplet_id = dmi.read_dmi_data("system-serial-number")
204 if droplet_id:
206 droplet_id)
215 return (True, droplet_id)
/dports/sysutils/py-salt/salt-3004.1/salt/cloud/clouds/
H A Ddigitalocean.py599 method="droplets", droplet_id=None, command=None, args=None, http_method="get" argument
616 if droplet_id:
617 path += "{}/".format(droplet_id)
879 node = query(method="droplets", droplet_id=data["id"], http_method="delete")
941 domain = query(method="domains", droplet_id=kwargs["dns_domain"])
946 droplet_id=kwargs["dns_domain"],
968 response = query(method="domains", droplet_id=domain, command="records")
983 droplet_id=domain,
1321 droplet_id=data["id"],
1364 droplet_id=data["id"],
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/digitalocean/tests/integration/targets/digital_ocean_snapshot/tasks/
H A Dmain.yml50 droplet_id: "{{ result.data.droplet.id }}"
57 droplet_id: "{{ droplet_id }}"
/dports/devel/py-molecule/molecule-2.22/molecule/cookiecutter/scenario/driver/digitalocean/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/
H A Ddestroy.yml23 id: "{{ item.droplet_id }}"
H A Dcreate.yml65 'droplet_id': "{{ item.droplet.id }}", }
/dports/devel/py-molecule/molecule-2.22/test/resources/playbooks/digitalocean/
H A Ddestroy.yml22 id: "{{ item.droplet_id }}"
H A Dcreate.yml64 'droplet_id': "{{ item.droplet.id }}",
/dports/sysutils/ansible2/ansible-2.9.27/contrib/inventory/
H A Ddigital_ocean.py219 def show_droplet(self, droplet_id): argument
220 resp = self.send('droplets/%s' % droplet_id)
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/digitalocean/scripts/inventory/
H A Ddigital_ocean.py214 def show_droplet(self, droplet_id): argument
215 resp = self.send("droplets/%s" % droplet_id)
/dports/net/py-libcloud/apache-libcloud-3.4.1/libcloud/compute/drivers/
H A Ddigitalocean.py464 for droplet_id in volume.extra['droplet_ids']:
465 attr['droplet_id'] = droplet_id

12