{"id":434,"date":"2015-09-24T14:57:08","date_gmt":"2015-09-24T14:57:08","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2015\/09\/24\/implement-chef-roles-using-chef-server\/"},"modified":"2021-02-27T09:50:34","modified_gmt":"2021-02-27T09:50:34","slug":"implement-chef-roles-using-chef-server","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/","title":{"rendered":"How to Implement Chef roles using Chef server ?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3345 aligncenter\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png\" alt=\"implement-chef-roles-using-chef-server\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>What is Role?<\/strong><\/p>\n<p>A role is a way to define certain patterns and processes that exist across nodes in an organization as belonging to a single job function. Each role consists of zero (or more) attributes and a run-list. Each node can have zero (or more) roles assigned to it. When a role is run against a node, the configuration details of that node are compared against the attributes of the role, and then the contents of that role\u2019s run-list are applied to the node\u2019s configuration details. When a chef-client runs, it merges its own attributes and run-lists with those contained within each assigned role.<\/p>\n<p><strong>How to use Roles in Chef?<\/strong><\/p>\n<ol>\n<li>Create a Role and add the cookbooks into it.<\/li>\n<li>Assign the role into each node or bootstrap new nodes using roles<\/li>\n<li>The the run list<\/li>\n<\/ol>\n<p><strong>How to create Role?<\/strong><\/p>\n<p><strong>Method 1: In Chef Server directly<\/strong><\/p>\n<pre><code>&gt; knife role create client1<\/code><\/pre>\n<p>&amp;<\/p>\n<p>Add the run list e.g. &#8220;recipe[nginx]&#8221; under &#8220;run_list&#8221;<\/p>\n<p>Save &amp; exit<\/p>\n<p>The role will be created in Chef Server.<\/p>\n<p>Example<\/p>\n<pre><code>{ \"name\": \"client1\", \"description\": \"\", \"json_class\": \"Chef::Role\", \"default_attributes\": { }, \"override_attributes\": { }, \"chef_type\": \"role\", \"run_list\": [ \"recipe[nginx]\", \"recipe[phpapp::web]\" ], \"env_run_lists\": { } } <\/code><\/pre>\n<p><strong>Let&#8217;s download the role from the Chef server so we have it locally in a Chef repository.<\/strong><\/p>\n<p>&gt; knife role show client1 -d -Fjson &gt; roles\/client1.json<\/p>\n<p><strong>Now, Lets bootstrap the node using knife with roles<\/strong><\/p>\n<pre>&gt; knife bootstrap --run-list \"role[client1]\" --sudo hostname<\/pre>\n<p><strong>How to edit the roles in chef Server?<\/strong><\/p>\n<pre>&gt; knife role edit client1<\/pre>\n<p><strong>Method 2: In local repo under chef-repo folder<\/strong><\/p>\n<pre><code>&gt; vi webserver.rb<\/code><\/pre>\n<p>example &#8211;<\/p>\n<pre><code>name \"web_server\" description \"Role for web servers\" run_list(   \"role[base]\",   \"recipe{web_server]\" ) <\/code><\/pre>\n<p>&amp; Then upload to chef server using following commands.<\/p>\n<pre>&gt; knife role from file path\/to\/role\/file<\/pre>\n<p><strong>How Assigning Roles to Nodes?<\/strong><\/p>\n<pre><code>&gt; knife node list<\/code><\/pre>\n<pre><code>&gt; knife node edit node_name<\/code><\/pre>\n<p>This will bring up the node&#8217;s definition file, which will allow us to add a role to its run_list:<\/p>\n<pre><code>{ \"name\": \"client1\", \"chef_environment\": \"_default\", \"normal\": { \"tags\": [  ] \t}, \"run_list\": [ \t\"recipe[nginx]\" ] } <\/code><\/pre>\n<p>For instance, we can replace our recipe with our role in this file:<\/p>\n<pre><code>{ \"name\": \"client1\", \"chef_environment\": \"_default\", \"normal\": { \"tags\": [ ] }, \"run_list\": [ \"role[web_server]\" ] } <\/code><\/pre>\n<p><strong>How to bootstrap node using role?<\/strong><\/p>\n<pre><code>&gt; knife bootstrap {{address}} --ssh-user {{user}} --ssh-password '{{password}}' --sudo --use-sudo-password --node-name node1 --run-list 'role[production]'<\/code><\/pre>\n<pre><code>&gt; knife bootstrap --run-list \"role[phpapp-web]\" --sudo hostname<\/code><\/pre>\n<p><strong>How to run roles against nodes?<\/strong><\/p>\n<p>You can run chef-client on multiple nodes via knife ssh command like, To query for all nodes that have the webserver role and then use SSH to run the command sudo chef-client, enter:<\/p>\n<pre><code>&gt; knife ssh \"role:webserver\" \"sudo chef-client\"<\/code><\/pre>\n<p>To find the uptime of all of web servers running Ubuntu on the Amazon EC2 platform, enter:<\/p>\n<pre><code>&gt; knife ssh \"role:web\" \"uptime\" -x ubuntu -a ec2.public_hostname<\/code><\/pre>\n<p><strong>Reference<\/strong><\/p>\n<p><a href=\"http:\/\/docs.chef.io\/roles.html\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.chef.io\/roles.html<\/a><\/p>\n<p><a href=\"https:\/\/docs.chef.io\/knife_ssh.html\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.chef.io\/knife_ssh.html<\/a><\/p>\n<p><a href=\"https:\/\/docs.chef.io\/knife_role.html\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.chef.io\/knife_role.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Role? A role is a way to define certain patterns and processes that exist across nodes in an [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3345,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[88],"tags":[407,604,1468,1469,1472,1471,1122,545,1473,1467,593,1470,732,104],"class_list":["post-434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chef","tag-chef","tag-chef-guide","tag-chef-roles","tag-chef-server","tag-chef-tutorial","tag-create-role-in-chef","tag-guide","tag-how","tag-how-to-implement-chef-roles","tag-implement","tag-process","tag-roles-in-chef","tag-steps","tag-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Implement Chef roles using Chef server ? - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Implement Chef roles using Chef server ? - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"What is Role? A role is a way to define certain patterns and processes that exist across nodes in an [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-24T14:57:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:50:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"How to Implement Chef roles using Chef server ?\",\"datePublished\":\"2015-09-24T14:57:08+00:00\",\"dateModified\":\"2021-02-27T09:50:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/\"},\"wordCount\":365,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/chef-roles-using-chef-serve.png\",\"keywords\":[\"Chef\",\"Chef Guide\",\"Chef roles\",\"Chef server\",\"Chef Tutorial\",\"create Role in Chef\",\"Guide\",\"How\",\"How to Implement Chef roles\",\"Implement\",\"Process\",\"Roles in Chef\",\"Steps\",\"Tutorials\"],\"articleSection\":[\"Chef\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/\",\"name\":\"How to Implement Chef roles using Chef server ? - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/chef-roles-using-chef-serve.png\",\"datePublished\":\"2015-09-24T14:57:08+00:00\",\"dateModified\":\"2021-02-27T09:50:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/chef-roles-using-chef-serve.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/chef-roles-using-chef-serve.png\",\"width\":600,\"height\":400,\"caption\":\"implement-chef-roles-using-chef-server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/implement-chef-roles-using-chef-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Implement Chef roles using Chef server ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Implement Chef roles using Chef server ? - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Implement Chef roles using Chef server ? - scmGalaxy","og_description":"What is Role? A role is a way to define certain patterns and processes that exist across nodes in an [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/","og_site_name":"scmGalaxy","article_published_time":"2015-09-24T14:57:08+00:00","article_modified_time":"2021-02-27T09:50:34+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"How to Implement Chef roles using Chef server ?","datePublished":"2015-09-24T14:57:08+00:00","dateModified":"2021-02-27T09:50:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/"},"wordCount":365,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png","keywords":["Chef","Chef Guide","Chef roles","Chef server","Chef Tutorial","create Role in Chef","Guide","How","How to Implement Chef roles","Implement","Process","Roles in Chef","Steps","Tutorials"],"articleSection":["Chef"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/","name":"How to Implement Chef roles using Chef server ? - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png","datePublished":"2015-09-24T14:57:08+00:00","dateModified":"2021-02-27T09:50:34+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/chef-roles-using-chef-serve.png","width":600,"height":400,"caption":"implement-chef-roles-using-chef-server"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/implement-chef-roles-using-chef-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Implement Chef roles using Chef server ?"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":4,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"predecessor-version":[{"id":3348,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/434\/revisions\/3348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/3345"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}