{"id":24156089,"url":"https://github.com/ilkbyte/api-ruby","last_synced_at":"2025-10-09T14:42:04.659Z","repository":{"id":55167945,"uuid":"309610401","full_name":"ilkbyte/api-ruby","owner":"ilkbyte","description":"Ilkbyte api ruby client","archived":false,"fork":false,"pushed_at":"2021-01-06T09:09:32.000Z","size":226,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-12T02:48:51.369Z","etag":null,"topics":["api-client","cloud","ruby","ruby-client","server"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilkbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-03T07:44:10.000Z","updated_at":"2020-12-05T11:26:28.000Z","dependencies_parsed_at":"2022-08-14T14:50:58.278Z","dependency_job_id":null,"html_url":"https://github.com/ilkbyte/api-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkbyte%2Fapi-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkbyte%2Fapi-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkbyte%2Fapi-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilkbyte%2Fapi-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilkbyte","download_url":"https://codeload.github.com/ilkbyte/api-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233601725,"owners_count":18700883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","cloud","ruby","ruby-client","server"],"created_at":"2025-01-12T13:15:44.397Z","updated_at":"2025-09-20T00:32:35.580Z","avatar_url":"https://github.com/ilkbyte.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ilkbyte\n\nWelcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ilkbyte`. To experiment with that code, run `bin/console` for an interactive prompt.\n\nAlso you can find [API documentation](https://apidocs.ilkbyte.com/docs/1.0/overview) here.\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ilkbyte'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install ilkbyte\n## Configuration\n\n```ruby\naccess_key = 'Your API Access Key'\nsecret_key = 'Your API Secret Key'\n\nIlkbyte::Base.new.setOption(access_key, secret_key)\n```\nIf you don't do this, you'll give **401 not authorized** error.\n\n## Usage\n\n```ruby\nrequire 'ilkbyte'\n\ndef myMethod()\n    Ilkbyte::Server.new.create\nend\n```\n\n## Functions Usage\n### Account\n```ruby\nclient = Ilkbyte::Account.new\n# Retrieve Account\nclient.account\n# List account users\nclient.accountUsers\n```\n### Server\n```ruby\n# Initialize client\nclient = Ilkbyte::Server.new\n\n# Get available server configurations\nclient.create\n\n# Create a new server\nclient.config({\n    username: username,\n    password: password,\n    name: name,\n    os_id: os_id,\n    app_id: app_id,\n    package_id: package_id,\n    sshkey: sshkey\n})\n\n# List all servers\nclient.all\n\n# List all active servers\nclient.active\n\n# Retrieve single server\nclient.show(server_name)\n\nclient.power(server_name, 'shutdown')\nclient.ip(server_name)\nclient.ipRdns(server_name, '127.0.0.1', 'test.ni.net.tr')\nclient.ipLogs(server_name)\nclient.backup(server_name)\nclient.backupRestore(server_name, {\n  backup_name: 'backup_name'\n})\nclient.snapshot(server_name)\nclient.snapshotCreate(server_name, {\n    name: name\n})\nclient.snapshotRevert(server_name, {\n    name: name\n})\nclient.snapshotUpdate(server_name, {\n    name: name\n})\nclient.snapshotDelete(server_name, {\n    name: name\n})\nclient.snapshotCronAdd(server_name,\n  {\n    name: name,\n    day: day,\n    hour: hour,\n    min: min\n  }\n)\nclient.snapshotCronDelete(server_name, {\n    name: name\n})\n```\n### Domain\n```ruby\nclient = Ilkbyte::Domain.new\nclient.all\nclient.create(\n  {\n    server: server_name,\n    domain: domain,\n    ipv6: ipv6\n  }\n)\nclient.show('your-domain-name')\nclient.add('your-domain-name',\n  {\n    record_name: record_name,\n    record_type: record_type,\n    record_content: record_content,\n    record_priority: priority\n  }\n)\nclient.update('your-domain-name',\n  {\n    record_id: record_id,\n    record_content: record_content,\n    record_priority: priority\n  }\n)\nclient.delete('your-domain-name')\nclient.push('your-domain-name')\n```\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ilkbyte.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filkbyte%2Fapi-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filkbyte%2Fapi-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filkbyte%2Fapi-ruby/lists"}