Created
October 13, 2024 19:39
-
-
Save pinggit/0d54c6b6ebfc789b8f3bb85dca947ebe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% curl "https://support.servicenow.com/api/sn_chg_rest/v1/change/standard/d6a6d4714fccc7808b6f60001310c724?description=a+standard+change+dia&short_description=dia+creation" \ | |
--request POST \ | |
--header "Accept:application/json" \ | |
--user "$USER":"$PASSWORD" | jq | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 12598 0 12598 0 0 11773 0 --:--:-- 0:00:01 --:--:-- 11784 | |
{ | |
"result": { | |
"reason": { | |
"display_value": "", | |
"value": "" | |
}, | |
"parent": { | |
"display_value": "", | |
"value": "" | |
}, | |
"watch_list": { | |
"display_value": "", | |
"value": "" | |
}, | |
"sys_updated_on": { | |
"display_value": "2024-10-13 12:38:37", | |
"value": "2024-10-13 19:38:37", | |
"display_value_internal": "2024-10-13 12:38:37" | |
}, | |
"planned_duration": { | |
"display_value": "1 Hour 0 Seconds", | |
"value": "1970-01-01 01:00:00" | |
}, | |
"skills": { | |
"display_value": "", | |
"value": "" | |
}, | |
"requested_by_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_instance_version_update": { | |
"display_value": "", | |
"value": "" | |
}, | |
"state": { | |
"display_value": "New", | |
"value": -5.0 | |
}, | |
"sys_created_by": { | |
"display_value": "cnshi", | |
"value": "cnshi" | |
}, | |
"u_automated_deployment": { | |
"display_value": "false", | |
"value": false | |
}, | |
"knowledge": { | |
"display_value": "false", | |
"value": false | |
}, | |
"delivery_plan": { | |
"display_value": "", | |
"value": "" | |
}, | |
"cmdb_ci_business_app": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_sys_upgrade": { | |
"display_value": "", | |
"value": "" | |
}, | |
"impact": { | |
"display_value": "", | |
"value": "" | |
}, | |
"active": { | |
"display_value": "true", | |
"value": true | |
}, | |
"production_system": { | |
"display_value": "false", | |
"value": false | |
}, | |
"cab_recommendation": { | |
"display_value": "", | |
"value": "" | |
}, | |
"rejection_goto": { | |
"display_value": "", | |
"value": "" | |
}, | |
"group_list": { | |
"display_value": "", | |
"value": "" | |
}, | |
"estimated_cost": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_peer_reviewer": { | |
"display_value": "", | |
"value": "" | |
}, | |
"copied_from": { | |
"display_value": "", | |
"value": "" | |
}, | |
"end_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_itil_watch_list": { | |
"display_value": "", | |
"value": "" | |
}, | |
"correlation_display": { | |
"display_value": "", | |
"value": "" | |
}, | |
"outside_maintenance_schedule": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_legacy_id": { | |
"display_value": "", | |
"value": "" | |
}, | |
"std_change_producer_version": { | |
"display_value": "BB Circuit Cost Out/In - Std - 3", | |
"value": "bfd96192937c31d05736b25d6cba104b" | |
}, | |
"u_cab_approval_required": { | |
"display_value": "false", | |
"value": false | |
}, | |
"service_offering": { | |
"display_value": "", | |
"value": "" | |
}, | |
"follow_up": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"uid": { | |
"display_value": "", | |
"value": "" | |
}, | |
"devops_change": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_approval_needed": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_sre_note": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_create_planned_outage_": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_deployment_configuration": { | |
"display_value": "", | |
"value": "" | |
}, | |
"variables": { | |
"display_value": "variable_pool", | |
"value": "variable_pool" | |
}, | |
"actual_end_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"agile_story": { | |
"display_value": "", | |
"value": "" | |
}, | |
"escalation": { | |
"display_value": "Normal", | |
"value": 0.0 | |
}, | |
"u_fedramp_required": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_product_final_taxonomy": { | |
"display_value": "", | |
"value": "" | |
}, | |
"correlation_id": { | |
"display_value": "", | |
"value": "" | |
}, | |
"has_child": { | |
"display_value": "false", | |
"value": false | |
}, | |
"pause_escalation": { | |
"display_value": "false", | |
"value": false | |
}, | |
"made_sla": { | |
"display_value": "true", | |
"value": true | |
}, | |
"project": { | |
"display_value": "", | |
"value": "" | |
}, | |
"task_count": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_quote_number": { | |
"display_value": "", | |
"value": "" | |
}, | |
"change_phase": { | |
"display_value": "Registered", | |
"value": "registered" | |
}, | |
"u_security_incident": { | |
"display_value": "false", | |
"value": false | |
}, | |
"user_input": { | |
"display_value": "", | |
"value": "" | |
}, | |
"sys_created_on": { | |
"display_value": "2024-10-13 12:38:37", | |
"value": "2024-10-13 19:38:37", | |
"display_value_internal": "2024-10-13 12:38:37" | |
}, | |
"task_for": { | |
"display_value": "", | |
"value": "" | |
}, | |
"route_reason": { | |
"display_value": "", | |
"value": "" | |
}, | |
"closed_at": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_incident_state": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_comments_and_work_notes": { | |
"display_value": "", | |
"value": "" | |
}, | |
"review_comments": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_automation_type": { | |
"display_value": "Auto Created", | |
"value": "3" | |
}, | |
"time_worked": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_tags": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_escalated": { | |
"display_value": "false", | |
"value": false | |
}, | |
"work_end": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_contract": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_product_initial_taxonomy": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_close_reason": { | |
"display_value": "", | |
"value": "" | |
}, | |
"cab_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"work_notes": { | |
"display_value": "", | |
"value": "" | |
}, | |
"close_code": { | |
"display_value": "", | |
"value": "" | |
}, | |
"assignment_group": { | |
"display_value": "CNS Backbone", | |
"value": "45d6c048db0b4510b5d6e6be13961982" | |
}, | |
"u_manager_approval_required": { | |
"display_value": "false", | |
"value": false | |
}, | |
"description": { | |
"display_value": "a standard change dia", | |
"value": "a standard change dia" | |
}, | |
"on_hold_reason": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_internal_only": { | |
"display_value": "false", | |
"value": false | |
}, | |
"sys_id": { | |
"display_value": "de0164e893115210e7eef35d6cba10f9", | |
"value": "de0164e893115210e7eef35d6cba10f9" | |
}, | |
"u_parm2": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_deployment_consultant": { | |
"display_value": "", | |
"value": "" | |
}, | |
"urgency": { | |
"display_value": "3 - Low", | |
"value": 3.0 | |
}, | |
"u_parm1": { | |
"display_value": "", | |
"value": "" | |
}, | |
"scope": { | |
"display_value": "3", | |
"value": 3.0 | |
}, | |
"company": { | |
"display_value": "Service-now.com", | |
"value": "bcd73a0ad0bbf53801f322a4eb09a8f2" | |
}, | |
"u_total_escalated_period": { | |
"display_value": "", | |
"value": "" | |
}, | |
"approval": { | |
"display_value": "Approved", | |
"value": "approved" | |
}, | |
"sys_tags": { | |
"display_value": "", | |
"value": "" | |
}, | |
"percent_complete": { | |
"display_value": "", | |
"value": "" | |
}, | |
"conflict_last_run": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"cab_date_time": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_risk_value": { | |
"display_value": "20", | |
"value": 20.0 | |
}, | |
"risk": { | |
"display_value": "Low", | |
"value": 3.0 | |
}, | |
"location": { | |
"display_value": "", | |
"value": "" | |
}, | |
"risk_impact_analysis": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_is_cab_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"upon_reject": { | |
"display_value": "Cancel all future Tasks", | |
"value": "cancel" | |
}, | |
"type": { | |
"display_value": "Standard", | |
"value": "standard" | |
}, | |
"approval_history": { | |
"display_value": "", | |
"value": "" | |
}, | |
"test_plan": { | |
"display_value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266", | |
"value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266" | |
}, | |
"number": { | |
"display_value": "CHG57527893", | |
"value": "CHG57527893" | |
}, | |
"cab_delegate": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_lock_required": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_legacy_state": { | |
"display_value": "Open", | |
"value": 1.0 | |
}, | |
"order": { | |
"display_value": "", | |
"value": "" | |
}, | |
"phase": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_snc_version": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_is_auto_upgrade": { | |
"display_value": "false", | |
"value": false | |
}, | |
"cmdb_ci": { | |
"display_value": "", | |
"value": "" | |
}, | |
"contract": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_language": { | |
"display_value": "", | |
"value": "" | |
}, | |
"sys_domain_path": { | |
"display_value": "", | |
"value": "" | |
}, | |
"priority": { | |
"display_value": "4 - Low", | |
"value": 4.0 | |
}, | |
"review_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"requested_by": { | |
"display_value": "cns hi (NOW)", | |
"value": "a2d0734bdb251010f2f8e15b8a9619be" | |
}, | |
"business_duration": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_template": { | |
"display_value": "BB Circuit Cost Out/In - Std", | |
"value": "92a6d4714fccc7808b6f60001310c722" | |
}, | |
"change_plan": { | |
"display_value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266", | |
"value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266" | |
}, | |
"approval_set": { | |
"display_value": "2024-10-13 12:38:38", | |
"value": "2024-10-13 19:38:38", | |
"display_value_internal": "2024-10-13 12:38:38" | |
}, | |
"implementation_plan": { | |
"display_value": "", | |
"value": "" | |
}, | |
"needs_attention": { | |
"display_value": "false", | |
"value": false | |
}, | |
"universal_request": { | |
"display_value": "", | |
"value": "" | |
}, | |
"short_description": { | |
"display_value": "dia creation", | |
"value": "dia creation" | |
}, | |
"u_documentation": { | |
"display_value": "", | |
"value": "" | |
}, | |
"work_start": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_bt_number": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_caller": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_is_cab_approval_required": { | |
"display_value": "false", | |
"value": false | |
}, | |
"additional_assignee_list": { | |
"display_value": "", | |
"value": "" | |
}, | |
"sys_class_name": { | |
"display_value": "Change Request", | |
"value": "change_request" | |
}, | |
"closed_by": { | |
"display_value": "", | |
"value": "" | |
}, | |
"review_status": { | |
"display_value": "", | |
"value": "" | |
}, | |
"reassignment_count": { | |
"display_value": "0", | |
"value": 0.0 | |
}, | |
"u_project_manager": { | |
"display_value": "", | |
"value": "" | |
}, | |
"start_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"assigned_to": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_assignment_mismatch": { | |
"display_value": "false", | |
"value": false | |
}, | |
"sla_due": { | |
"display_value": "UNKNOWN", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_action_needed": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_new_non_default": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_sub_category": { | |
"display_value": "Carrier - Cost Out/In", | |
"value": "Carrier - Cost Out/In" | |
}, | |
"u_customer_action_needed": { | |
"display_value": "false", | |
"value": false | |
}, | |
"upon_approval": { | |
"display_value": "Proceed to Next Task", | |
"value": "proceed" | |
}, | |
"planned_end_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"actual_start_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"backout_plan": { | |
"display_value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266", | |
"value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266" | |
}, | |
"conflict_status": { | |
"display_value": "Not Run", | |
"value": "Not Run" | |
}, | |
"task_effective_number": { | |
"display_value": "CHG57527893", | |
"value": "CHG57527893" | |
}, | |
"sys_updated_by": { | |
"display_value": "cnshi", | |
"value": "cnshi" | |
}, | |
"opened_by": { | |
"display_value": "cns hi (NOW)", | |
"value": "a2d0734bdb251010f2f8e15b8a9619be" | |
}, | |
"on_hold_task": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_task_resolved": { | |
"display_value": "false", | |
"value": false | |
}, | |
"sys_domain": { | |
"display_value": "TOP/ServiceNow Top/Service-now.com", | |
"value": "cc7957a84f0dd600a41c524e0210c763" | |
}, | |
"u_metadata": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_bt_sys_id": { | |
"display_value": "", | |
"value": "" | |
}, | |
"business_service": { | |
"display_value": "", | |
"value": "" | |
}, | |
"change_state": { | |
"display_value": "Open", | |
"value": "open" | |
}, | |
"chg_model": { | |
"display_value": "", | |
"value": "" | |
}, | |
"expected_start": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"opened_at": { | |
"display_value": "2024-10-13 12:38:37", | |
"value": "2024-10-13 19:38:37", | |
"display_value_internal": "2024-10-13 12:38:37" | |
}, | |
"phase_state": { | |
"display_value": "Open", | |
"value": "open" | |
}, | |
"planned_start_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"u_state_model_configuration": { | |
"display_value": "Legacy state Model", | |
"value": 1.0 | |
}, | |
"u_customer_instance": { | |
"display_value": "", | |
"value": "" | |
}, | |
"calendar_duration": { | |
"display_value": "", | |
"value": "" | |
}, | |
"close_notes": { | |
"display_value": "", | |
"value": "" | |
}, | |
"contact_type": { | |
"display_value": "Internal", | |
"value": "internal" | |
}, | |
"cab_required": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_risk_assessment": { | |
"display_value": "If the change fails, what is the worst case impact to external customers?\r\n Extra network latency while traffic fails over to another circuit\r\nIf the change fails, what is the worst case impact to internal customers?\r\n Extra network latency while traffic fails over to another circuit\r\nHow does this change impact monitoring or alerts?\r\n None.\r\nAre there any scheduling conflicts with any planned changes?\r\nNone.", | |
"value": "If the change fails, what is the worst case impact to external customers?\r\n Extra network latency while traffic fails over to another circuit\r\nIf the change fails, what is the worst case impact to internal customers?\r\n Extra network latency while traffic fails over to another circuit\r\nHow does this change impact monitoring or alerts?\r\n None.\r\nAre there any scheduling conflicts with any planned changes?\r\nNone." | |
}, | |
"justification": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_old_url_retention": { | |
"display_value": "", | |
"value": "" | |
}, | |
"activity_due": { | |
"display_value": "UNKNOWN", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"action_status": { | |
"display_value": "", | |
"value": "" | |
}, | |
"actual_duration": { | |
"display_value": "", | |
"value": "" | |
}, | |
"comments": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_snc_instance": { | |
"display_value": "", | |
"value": "" | |
}, | |
"due_date": { | |
"display_value": "", | |
"value": "", | |
"display_value_internal": "" | |
}, | |
"sys_mod_count": { | |
"display_value": "0", | |
"value": "0" | |
}, | |
"on_hold": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_escalation_count": { | |
"display_value": "", | |
"value": "" | |
}, | |
"risk_value": { | |
"display_value": "", | |
"value": "" | |
}, | |
"unauthorized": { | |
"display_value": "false", | |
"value": false | |
}, | |
"u_validation_plan": { | |
"display_value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266", | |
"value": "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1289266" | |
}, | |
"u_close_code": { | |
"display_value": "", | |
"value": "" | |
}, | |
"u_is_forced_upgrade": { | |
"display_value": "false", | |
"value": false | |
}, | |
"category": { | |
"display_value": "Network", | |
"value": "Network" | |
}, | |
"__meta": { | |
"ignoredFields": [] | |
} | |
} | |
} | |
~/repos/cns-scripts/operation | |
% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment