[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-759560-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-759560-en":129,"doc-similar-759560":158},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","introduction-to-yaml-configuration-network-startup-resource-center","Introduction to YAML configuration - Network Startup Resource Center","","Introduction to YAML configuration explains how YAML stores structured data as readable text, and contrasts it with JSON-style key-value representations. Covers core types including plain strings, numeric values, sequences as ordered lists, and mappings as unordered key-value pairs. Details single-line and multi-line sequence/mapping syntax, nesting rules using indentation, quoting needs for strings, and alignment practices. Provides practical examples such as sequence-of-mappings structures and Prometheus configuration snippets.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/introduction-to-yaml-configuration-network-startup-resource-center/759560/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/introduction-to-yaml-configuration-network-startup-resource-center/759560.png","ImageObject",300,407,{"name":42,"@type":43},"Jasmine","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":51,"interactionType":52,"userInteractionCount":22},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What is YAML and how is it different from JSON?","Question",{"text":61,"@type":62},"YAML stores structured data as text and is conceptually similar to JSON. It uses indentation and clear syntax for lists and key-value pairs.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"How do you write a YAML sequence (ordered list)?",{"text":66,"@type":62},"You can use a single-line form like [birth, taxes, death] or a multi-line form with dashes. A space after the dash is required.",{"name":68,"@type":59,"acceptedAnswer":69},"How do YAML mappings (key-value pairs) work?",{"text":70,"@type":62},"Mappings can be written in single-line form like {item: shirt, colour: red} or multi-line form where each key uses a colon and values follow on the next line. Indentation defines nesting.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},759560,1795887859,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":22,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":109,"language":138,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":139,"faqs":140,"seo_title":141,"seo_description":12,"update_tm":78,"read_time":116,"preview_page_count":33,"preview_urls":142},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Introduction to YAML configuration  \nNetwork Startup Resource Center  \nWhat is YAML?  \n● A way of storing structured data as text  \n● Conceptually similar to JSON  \n– Plain string and numeric values  \n– \"Sequence\": ordered list of values  \n– \"Mapping\": unordered set of key-value pairs  \n● String values don't normally need quotes ● Sequences and mappings can be nested ● Indentation used to define nesting  \nYAML sequence (ordered list)  \n● Single line form  \n[birth, taxes, death]  \n● Multi-line form  \n-birth  \n- taxes  \n-death  \n Space after dash required  \nYAML mapping (key-value pairs)  \n● Single line form  \n{item: shirt, colour: red, size: 42}  \nSpace after colon required  \n● Multi-line form  \nitem: shirt  \ncolour: red  \nsize: 42  \ndescription: |  \nthis is a very long multi-line text field which is all one value  \nNesting: sequence of mappings  \n● Compact  \n- {item: shirt, colour: red, size: 42}  \n- {item: shirt, colour: blue, size: 44}  \n● Multi-line  \n- item: shirt colour: red size: 42  \n- item: shirt colour: blue size: 44  \nNote alignment  \nMore complex YAML example  \nA sequence with 3 items  \nEach item is a mapping (key-value pairs)  \n-do: laundry  String value items:  \n- trousers  Sequence of strings (note indentation)  \n- shirts  \n-do: polish items:  \n- shoes  \n-buckle  \n-do: relax eat:  \n-chocolate  \n-chips  \nExample: prometheus.yml  \n~~ ~~ Top level mapping: each section is a key  \n~~ ~~ \"scrape  configs\" value is a sequence, and  \n each value in the sequence is a mapping  \nscrape_configs:  \n- job_name: prometheus  \nmetrics_path: /prometheus/metrics static_configs:  \n- targets: ['localhost:9090']  \n- job_name: alertmanager  metrics_path: /alertmanager/metrics  static_configs:  \n- targets: ['localhost:9093']  \nString value  \nSeq of strings  \nExample: targets.d/snmp.yml  \n- labels:  \nTop level is a sequence of mappings  \nEach mapping has \"labels\" and \"targets\" keys (\"labels\" may be omitted)  \n module: if_mib_v3  \nsite: campus1  \ntargets:  \n-[bdr1.campus1.ws.nsrc.org](bdr1.campus1.ws.nsrc.org)  \n-[core1.campus1.ws.nsrc.org](core1.campus1.ws.nsrc.org)  \n~~ ~~ \"targets\" is a sequence with string values   \"labels\" is a mapping with string values","cbCaivFTIM86tdNd","https://ap.wps.com/l/cbCaivFTIM86tdNd","pdf",114058,"English","# What is YAML?\n## YAML sequence (ordered list)\n## YAML mapping (key-value pairs)\n## Nesting and indentation examples\n## More complex YAML example","[{\"question\":\"What is YAML and how is it different from JSON?\",\"answer\":\"YAML stores structured data as text and is conceptually similar to JSON. It uses indentation and clear syntax for lists and key-value pairs.\"},{\"question\":\"How do you write a YAML sequence (ordered list)?\",\"answer\":\"You can use a single-line form like [birth, taxes, death] or a multi-line form with dashes. A space after the dash is required.\"},{\"question\":\"How do YAML mappings (key-value pairs) work?\",\"answer\":\"Mappings can be written in single-line form like {item: shirt, colour: red} or multi-line form where each key uses a colon and values follow on the next line. Indentation defines nesting.\"}]","Introduction to YAML configuration - Network Startup Resource Center | PDF",[143,147,150,154],{"page_no":22,"url":144,"width":145,"height":146},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/7a3faeefce0943c984db20c699b95bd3.webp",983,736,{"page_no":26,"url":148,"width":149,"height":146},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/b0068e32861828248fa1bc93bf393031.webp",982,{"page_no":30,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/a786683b43b99125ce4802a8e7656e4c.webp",981,735,{"page_no":33,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/d84a02d9d39478a46fdae31e8b2be8d4.webp",980,734,{"list":159,"token":11},[160,166,172,178,184,190,197,203,209,215],{"doc_id":161,"doc_title":162,"file_type":136,"home_preview_img_url":163,"slug":164,"view_count":30,"category_name":29,"create_tm":165},685678,"Python Lesson 5 - Dictionaries and JSON - Error Trapping, Lists, and Nesting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000176274/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=1JhkSEkixh7%2BDbY86Nkz3UpTFWI%3D","python-lesson-5-dictionaries-and-json-error-trapping-lists-and-nesting",1794016562,{"doc_id":167,"doc_title":168,"file_type":136,"home_preview_img_url":169,"slug":170,"view_count":22,"category_name":29,"create_tm":171},759563,"YAML - Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044462285/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=Qt8jWa4CiJeOOFp7Aoxj1e5R2OA%3D","yaml-tutorial",1795887865,{"doc_id":173,"doc_title":174,"file_type":136,"home_preview_img_url":175,"slug":176,"view_count":22,"category_name":29,"create_tm":177},759565,"A Novel Approach to Standardise Verification Configurations - using YAML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044201024/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=dXa9nHJFaB5uxHZpkBc7ENt%2FT8Q%3D","a-novel-approach-to-standardise-verification-configurations-using-yaml",1795887868,{"doc_id":179,"doc_title":180,"file_type":136,"home_preview_img_url":181,"slug":182,"view_count":30,"category_name":29,"create_tm":183},724396,"OpenText ScanCentral DAST - Configuration and Usage Guide - Linux","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028336605/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=%2B8EL5Zes5gf508rjfa6ZNZHRdvA%3D","opentext-scancentral-dast-configuration-and-usage-guide-linux",1795179936,{"doc_id":185,"doc_title":186,"file_type":136,"home_preview_img_url":187,"slug":188,"view_count":22,"category_name":29,"create_tm":189},759568,"YAML - Getting Started - Basic Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044201039/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=RhIaf%2FCawsNkJXwCC%2FNMymDLisk%3D","yaml-getting-started-basic-tutorial",1795887875,{"doc_id":191,"doc_title":192,"file_type":136,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},346438,"Introduction to HTML - Basic Concepts and Examples","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911195333/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=1Ue87SHbb0NvA8KSKfk%2FwlnYNfQ%3D","introduction-to-html-basic-concepts-and-examples",12,1790061454,{"doc_id":198,"doc_title":199,"file_type":136,"home_preview_img_url":200,"slug":201,"view_count":33,"category_name":29,"create_tm":202},685845,"Markdown Cheatsheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227815/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=B0wKpWoFP5nsS%2FE9OZamTagvC9E%3D","markdown-cheatsheet-685845",1794019540,{"doc_id":204,"doc_title":205,"file_type":136,"home_preview_img_url":206,"slug":207,"view_count":114,"category_name":29,"create_tm":208},692234,"PYTHON-QUICK GUIDE - Beginner - Start Here","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003011241/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=LEFaTwxLn5gY8yNTkZXmOTiG9oM%3D","python-quick-guide-beginner-start-here",1794186385,{"doc_id":210,"doc_title":211,"file_type":136,"home_preview_img_url":212,"slug":213,"view_count":33,"category_name":29,"create_tm":214},698807,"OpenText Professional Performance Engineering - Error Codes Guide - Software version 26.3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010427025/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=poSSMsX2VGmz%2B4XpWTFuiESckrE%3D","opentext-professional-performance-engineering-error-codes-guide-software-version-263",1794455371,{"doc_id":216,"doc_title":217,"file_type":136,"home_preview_img_url":218,"slug":219,"view_count":109,"category_name":29,"create_tm":220},692238,"The Go Programming Handbook - A Complete Guide to Building Production-Grade Applications in Golang","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003019020/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110139&Signature=wxEgBnHZA6T1iGLRMYTNpXS6W7M%3D","the-go-programming-handbook-a-complete-guide-to-building-production-grade-applications-in-golang",1794186695]