{"action":"created","issue":{"url":"https://api.github.com/repos/digitalocean/doctl/issues/145","repository_url":"https://api.github.com/repos/digitalocean/doctl","labels_url":"https://api.github.com/repos/digitalocean/doctl/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/digitalocean/doctl/issues/145/comments","events_url":"https://api.github.com/repos/digitalocean/doctl/issues/145/events","html_url":"https://github.com/digitalocean/doctl/issues/145","id":179172772,"number":145,"title":"droplet tag - The resource you were accessing could not be found","user":{"login":"konstruktoid","id":7956715,"avatar_url":"https://avatars.githubusercontent.com/u/7956715?v=3","gravatar_id":"","url":"https://api.github.com/users/konstruktoid","html_url":"https://github.com/konstruktoid","followers_url":"https://api.github.com/users/konstruktoid/followers","following_url":"https://api.github.com/users/konstruktoid/following{/other_user}","gists_url":"https://api.github.com/users/konstruktoid/gists{/gist_id}","starred_url":"https://api.github.com/users/konstruktoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstruktoid/subscriptions","organizations_url":"https://api.github.com/users/konstruktoid/orgs","repos_url":"https://api.github.com/users/konstruktoid/repos","events_url":"https://api.github.com/users/konstruktoid/events{/privacy}","received_events_url":"https://api.github.com/users/konstruktoid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T08:55:43Z","updated_at":"2016-09-27T20:10:22Z","closed_at":null,"body":"Hi,\r\ntagging droplets via the website works great, but when I'm trying to tag and untag a droplet using `doctl` I'm getting a `Error: POST https://api.digitalocean.com/v2/tags/digitalocean/resources: 404 The resource you were accessing could not be found.`\r\nOther actions, `reboot` and `doctl compute ssh`etc, works without any issues.\r\n\r\n```\r\ndoctl version\r\ndoctl version 1.4.0-release\r\nGit commit hash: 9f26aaf\r\n```\r\n\r\nThe global flags has been removed for readability.\r\n\r\n```\r\ntsj@lab03:~/Git/Ansible$ doctl compute droplet list\r\nID              Name    Public IPv4     Public IPv6     Memory  VCPUs   Disk    Region  Image                   Status  Tags\r\n<IDNUM>        <NAME> 146.185.1XX.XXX                  512     1       20      ams2    Ubuntu 16.04.1 x64      active  squid\r\ntsj@lab03:~/Git/Ansible$ doctl compute droplet tag <IDNUM> --tag-name digitalocean\r\ntag\r\n\r\nUsage:\r\n  doctl compute droplet tag <droplet id or name> [flags]\r\n\r\nFlags:\r\n      --tag-name string   Tag name (required)\r\n\r\nError: POST https://api.digitalocean.com/v2/tags/digitalocean/resources: 404 The resource you were accessing could not be found.\r\ntsj@lab03:~/Git/Ansible$ doctl compute droplet tag <NAME> --tag-name digitalocean\r\ntag\r\n\r\nUsage:\r\n  doctl compute droplet tag <droplet id or name> [flags]\r\n\r\nFlags:\r\n      --tag-name string   Tag name (required)\r\n\r\nError: POST https://api.digitalocean.com/v2/tags/digitalocean/resources: 404 The resource you were accessing could not be found.\r\ntsj@lab03:~/Git/Ansible$ doctl compute droplet untag\r\nuntag\r\n\r\nUsage:\r\n  doctl compute droplet untag <droplet id or name> [flags]\r\n\r\nFlags:\r\n      --droplet-name value   Droplet names (default [])\r\n  -h, --help                 help for untag\r\n\r\nError: (droplet.untag) command is missing required arguments\r\ntsj@lab03:~/Git/Ansible$ doctl compute droplet untag <IDNUM> --droplet-name test\r\nuntag\r\n\r\nUsage:\r\n  doctl compute droplet untag <droplet id or name> [flags]\r\n\r\nFlags:\r\n      --droplet-name value   Droplet names (default [])\r\n\r\nError: droplet with name \"[test]\" could not be found\r\ntsj@lab03:~/Git/Ansible$ doctl compute droplet untag <IDNUM> --droplet-name <NAME>\r\nuntag\r\n\r\nUsage:\r\n  doctl compute droplet untag <droplet id or name> [flags]\r\n\r\nFlags:\r\n      --droplet-name value   Droplet names (default [])\r\n\r\nGlobal Flags:\r\n  -t, --access-token string   API V2 Access Token\r\n  -c, --config string         config file (default is $HOME/.doctlcfg)\r\n  -o, --output string         output format [text|json] (default \"text\")\r\n      --trace                 trace api access\r\n  -v, --verbose               verbose output\r\n\r\nError: droplet with name \"[<NAME>]\" could not be found\r\ntsj@lab03:~/Git/Ansible$\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/digitalocean/doctl/issues/comments/249983305","html_url":"https://github.com/digitalocean/doctl/issues/145#issuecomment-249983305","issue_url":"https://api.github.com/repos/digitalocean/doctl/issues/145","id":249983305,"user":{"login":"xmudrii","id":18719127,"avatar_url":"https://avatars.githubusercontent.com/u/18719127?v=3","gravatar_id":"","url":"https://api.github.com/users/xmudrii","html_url":"https://github.com/xmudrii","followers_url":"https://api.github.com/users/xmudrii/followers","following_url":"https://api.github.com/users/xmudrii/following{/other_user}","gists_url":"https://api.github.com/users/xmudrii/gists{/gist_id}","starred_url":"https://api.github.com/users/xmudrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmudrii/subscriptions","organizations_url":"https://api.github.com/users/xmudrii/orgs","repos_url":"https://api.github.com/users/xmudrii/repos","events_url":"https://api.github.com/users/xmudrii/events{/privacy}","received_events_url":"https://api.github.com/users/xmudrii/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T20:10:22Z","updated_at":"2016-09-27T20:10:22Z","body":"Hi,\r\n\r\nYou must create tag before applying it to droplet.\r\n`doctl compute droplet tag <IDNUM> --tag-name digitalocean` will apply **existing tag** with name `digitalocean` to your droplet.\r\n\r\n`doctl compute tag list` will show all available tags you can attach to droplet with Droplet count, e.g. :\r\n```\r\naaa\t\t0\r\nabb\t        0\r\nabc\t        0\r\nbac\t\t0\r\n```\r\nSo if you execute `doctl compute droplet tag <IDNUM> --tag-name aaa` it should do it successful, but if you execute `doctl compute droplet tag <IDNUM> --tag-name digitalocean` it will return 404 as `digitalocean` tag doesn't exist.\r\n\r\nTo create tag you can use command\r\n```\r\ndoctl compute tag create sammy\r\n```\r\nDeleting tag could be done by\r\n```\r\ndoctl compute tag delete sometag\r\n```"}}
{"actor":{"display_login":"xmudrii"}}