{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker.github.io/pulls/comments/138761995","pull_request_review_id":62601719,"id":138761995,"diff_hunk":"@@ -0,0 +1,95 @@\n+---\n+title: Deploy stack resources to a collection \n+description: Learn how to manage user access to stack resources by using collections. \n+keywords: UCP, authentication, user management, stack, collection, role\n+---\n+\n+A stack file is the definition of an application, and in the stack file,\n+you can apply access labels to specify access to application resources.\n+UCP interprets an access label to be the name of a collection that users are\n+granted access to by an administrator.\n+[Learn about managing access to resources by using collections](manage-access-with-collections.md).  \n+\n+Specify a collection for a resource by adding a `labels:` dictionary to the\n+stack file and assigning the `com.docker.ucp.access.label` key. For example,\n+a stack file that puts a resource in the `database` collection might look\n+similar to this:  \n+\n+```none\n+services:\n+   db:\n+     image: mysql:5.7\n+     deploy:\n+      labels:\n+        com.docker.ucp.access.label: database\n+```\n+\n+If you don't specify access labels in the stack file, resources are placed in\n+the user's default collection when the stack deploys.","path":"datacenter/ucp/2.2/guides/access-control/deploy-stack-to-collection.md","position":28,"original_position":28,"commit_id":"037496f7fd049a220d945f822a7a51c258627b6f","original_commit_id":"037496f7fd049a220d945f822a7a51c258627b6f","user":{"login":"alexmavr","id":680441,"avatar_url":"https://avatars1.githubusercontent.com/u/680441?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmavr","html_url":"https://github.com/alexmavr","followers_url":"https://api.github.com/users/alexmavr/followers","following_url":"https://api.github.com/users/alexmavr/following{/other_user}","gists_url":"https://api.github.com/users/alexmavr/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmavr/subscriptions","organizations_url":"https://api.github.com/users/alexmavr/orgs","repos_url":"https://api.github.com/users/alexmavr/repos","events_url":"https://api.github.com/users/alexmavr/events{/privacy}","received_events_url":"https://api.github.com/users/alexmavr/received_events","type":"User","site_admin":false},"body":"nit: \"is deployed\"","created_at":"2017-09-13T23:05:13Z","updated_at":"2017-09-13T23:08:38Z","html_url":"https://github.com/docker/docker.github.io/pull/4623#discussion_r138761995","pull_request_url":"https://api.github.com/repos/docker/docker.github.io/pulls/4623","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/docker/docker.github.io/pulls/comments/138761995"},"html":{"href":"https://github.com/docker/docker.github.io/pull/4623#discussion_r138761995"},"pull_request":{"href":"https://api.github.com/repos/docker/docker.github.io/pulls/4623"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker.github.io/pulls/4623","id":140947443,"html_url":"https://github.com/docker/docker.github.io/pull/4623","diff_url":"https://github.com/docker/docker.github.io/pull/4623.diff","patch_url":"https://github.com/docker/docker.github.io/pull/4623.patch","issue_url":"https://api.github.com/repos/docker/docker.github.io/issues/4623","number":4623,"state":"open","locked":false,"title":"Add topic on stacks and collections","user":{"login":"JimGalasyn","id":12521043,"avatar_url":"https://avatars0.githubusercontent.com/u/12521043?v=4","gravatar_id":"","url":"https://api.github.com/users/JimGalasyn","html_url":"https://github.com/JimGalasyn","followers_url":"https://api.github.com/users/JimGalasyn/followers","following_url":"https://api.github.com/users/JimGalasyn/following{/other_user}","gists_url":"https://api.github.com/users/JimGalasyn/gists{/gist_id}","starred_url":"https://api.github.com/users/JimGalasyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimGalasyn/subscriptions","organizations_url":"https://api.github.com/users/JimGalasyn/orgs","repos_url":"https://api.github.com/users/JimGalasyn/repos","events_url":"https://api.github.com/users/JimGalasyn/events{/privacy}","received_events_url":"https://api.github.com/users/JimGalasyn/received_events","type":"User","site_admin":false},"body":"First draft of topic on stacks, access labels, and collections. @alexmavr PTAL\r\n\r\nFixes [4275](https://github.com/docker/docker.github.io/issues/4275) and [4276](https://github.com/docker/docker.github.io/issues/4276).","created_at":"2017-09-13T22:49:31Z","updated_at":"2017-09-13T23:08:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9841f9ad883b7d08ce94fd30e8c8ed4e5291b44","assignee":null,"assignees":[],"requested_reviewers":[{"login":"joaofnfernandes","id":1525937,"avatar_url":"https://avatars0.githubusercontent.com/u/1525937?v=4","gravatar_id":"","url":"https://api.github.com/users/joaofnfernandes","html_url":"https://github.com/joaofnfernandes","followers_url":"https://api.github.com/users/joaofnfernandes/followers","following_url":"https://api.github.com/users/joaofnfernandes/following{/other_user}","gists_url":"https://api.github.com/users/joaofnfernandes/gists{/gist_id}","starred_url":"https://api.github.com/users/joaofnfernandes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaofnfernandes/subscriptions","organizations_url":"https://api.github.com/users/joaofnfernandes/orgs","repos_url":"https://api.github.com/users/joaofnfernandes/repos","events_url":"https://api.github.com/users/joaofnfernandes/events{/privacy}","received_events_url":"https://api.github.com/users/joaofnfernandes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker.github.io/pulls/4623/commits","review_comments_url":"https://api.github.com/repos/docker/docker.github.io/pulls/4623/comments","review_comment_url":"https://api.github.com/repos/docker/docker.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker.github.io/issues/4623/comments","statuses_url":"https://api.github.com/repos/docker/docker.github.io/statuses/037496f7fd049a220d945f822a7a51c258627b6f","head":{"label":"JimGalasyn:4275-stacks-collections","ref":"4275-stacks-collections","sha":"037496f7fd049a220d945f822a7a51c258627b6f","user":{"login":"JimGalasyn","id":12521043,"avatar_url":"https://avatars0.githubusercontent.com/u/12521043?v=4","gravatar_id":"","url":"https://api.github.com/users/JimGalasyn","html_url":"https://github.com/JimGalasyn","followers_url":"https://api.github.com/users/JimGalasyn/followers","following_url":"https://api.github.com/users/JimGalasyn/following{/other_user}","gists_url":"https://api.github.com/users/JimGalasyn/gists{/gist_id}","starred_url":"https://api.github.com/users/JimGalasyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimGalasyn/subscriptions","organizations_url":"https://api.github.com/users/JimGalasyn/orgs","repos_url":"https://api.github.com/users/JimGalasyn/repos","events_url":"https://api.github.com/users/JimGalasyn/events{/privacy}","received_events_url":"https://api.github.com/users/JimGalasyn/received_events","type":"User","site_admin":false},"repo":{"id":83173672,"name":"docker.github.io","full_name":"JimGalasyn/docker.github.io","owner":{"login":"JimGalasyn","id":12521043,"avatar_url":"https://avatars0.githubusercontent.com/u/12521043?v=4","gravatar_id":"","url":"https://api.github.com/users/JimGalasyn","html_url":"https://github.com/JimGalasyn","followers_url":"https://api.github.com/users/JimGalasyn/followers","following_url":"https://api.github.com/users/JimGalasyn/following{/other_user}","gists_url":"https://api.github.com/users/JimGalasyn/gists{/gist_id}","starred_url":"https://api.github.com/users/JimGalasyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimGalasyn/subscriptions","organizations_url":"https://api.github.com/users/JimGalasyn/orgs","repos_url":"https://api.github.com/users/JimGalasyn/repos","events_url":"https://api.github.com/users/JimGalasyn/events{/privacy}","received_events_url":"https://api.github.com/users/JimGalasyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JimGalasyn/docker.github.io","description":"Source repo for Docker's Documentation","fork":true,"url":"https://api.github.com/repos/JimGalasyn/docker.github.io","forks_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/forks","keys_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/teams","hooks_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/hooks","issue_events_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/events","assignees_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/tags","blobs_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/languages","stargazers_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/stargazers","contributors_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/contributors","subscribers_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/subscribers","subscription_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/subscription","commits_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/merges","archive_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/downloads","issues_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/labels{/name}","releases_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/JimGalasyn/docker.github.io/deployments","created_at":"2017-02-26T00:57:21Z","updated_at":"2017-02-26T00:57:28Z","pushed_at":"2017-09-13T22:44:43Z","git_url":"git://github.com/JimGalasyn/docker.github.io.git","ssh_url":"git@github.com:JimGalasyn/docker.github.io.git","clone_url":"https://github.com/JimGalasyn/docker.github.io.git","svn_url":"https://github.com/JimGalasyn/docker.github.io","homepage":"https://docs.docker.com","size":485284,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"898270c2331de1ee2bd2d5db679b0e36172ec4ec","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars1.githubusercontent.com/u/5429470?v=4","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":65772720,"name":"docker.github.io","full_name":"docker/docker.github.io","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars1.githubusercontent.com/u/5429470?v=4","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker.github.io","description":"Source repo for Docker's Documentation","fork":false,"url":"https://api.github.com/repos/docker/docker.github.io","forks_url":"https://api.github.com/repos/docker/docker.github.io/forks","keys_url":"https://api.github.com/repos/docker/docker.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker.github.io/teams","hooks_url":"https://api.github.com/repos/docker/docker.github.io/hooks","issue_events_url":"https://api.github.com/repos/docker/docker.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker.github.io/events","assignees_url":"https://api.github.com/repos/docker/docker.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker.github.io/tags","blobs_url":"https://api.github.com/repos/docker/docker.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker.github.io/languages","stargazers_url":"https://api.github.com/repos/docker/docker.github.io/stargazers","contributors_url":"https://api.github.com/repos/docker/docker.github.io/contributors","subscribers_url":"https://api.github.com/repos/docker/docker.github.io/subscribers","subscription_url":"https://api.github.com/repos/docker/docker.github.io/subscription","commits_url":"https://api.github.com/repos/docker/docker.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker.github.io/merges","archive_url":"https://api.github.com/repos/docker/docker.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker.github.io/downloads","issues_url":"https://api.github.com/repos/docker/docker.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker.github.io/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/docker/docker.github.io/deployments","created_at":"2016-08-15T23:50:51Z","updated_at":"2017-09-13T09:06:58Z","pushed_at":"2017-09-13T22:57:24Z","git_url":"git://github.com/docker/docker.github.io.git","ssh_url":"git@github.com:docker/docker.github.io.git","clone_url":"https://github.com/docker/docker.github.io.git","svn_url":"https://github.com/docker/docker.github.io","homepage":"https://docs.docker.com","size":509530,"stargazers_count":539,"watchers_count":539,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1641,"mirror_url":null,"open_issues_count":225,"forks":1641,"open_issues":225,"watchers":539,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker.github.io/pulls/4623"},"html":{"href":"https://github.com/docker/docker.github.io/pull/4623"},"issue":{"href":"https://api.github.com/repos/docker/docker.github.io/issues/4623"},"comments":{"href":"https://api.github.com/repos/docker/docker.github.io/issues/4623/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker.github.io/pulls/4623/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker.github.io/pulls/4623/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker.github.io/statuses/037496f7fd049a220d945f822a7a51c258627b6f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"alexmavr"}}