# Limit an API token for only one task

**URL:** <https://forums.suse.com/t/limit-an-api-token-for-only-one-task/16717>\
**Category:** SUSE Rancher Prime\
**Created:** [March 2, 2020, 6:04am UTC](https://forums.suse.com/t/limit-an-api-token-for-only-one-task/16717 "2020-03-02T06:04:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfdominguez](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/lfdominguez/32/6131_2.png) [@lfdominguez](https://forums.suse.com/u/lfdominguez)\
**Post date:** [March 2, 2020, 6:04am UTC](https://forums.suse.com/t/limit-an-api-token-for-only-one-task/16717/1 "2020-03-02T06:04:14Z")

</div>

How can i create an api token that with rancher cli only allow to me restart an specific deployment. I’m in a team as a DevOps Engineer, and for the deploy stage i need restart a Deployment onto my Rancher Cluster with the `rancher` CLI tool, but i dont found how create a token that allow me to do that only, not allow use that token for any other task.
