create a site and delete or remove site


CSO 5.1

https://www.juniper.net/documentation/en_US/cso5.1/information-products/pathway-pages/api-guide/index.html


CSO 5.0

https://www.juniper.net/documentation/en_US/cso5.0/information-products/pathway-pages/API_Guide/index.html#creating-a-site


https://<central-ms-ip>/tssm/create-sites



json file 

need to change:

"tenant_name": "JEAN_LUC_KRIKER",

"site_name": "Buckingham3",

"department": "Lab4",

"device_name": "s-srx-15549507"

"site_name": "s-srx-15549507",

json file from the documentation
{
    "input": {
        "tenant_name": "JEAN_LUC_KRIKER",
        "deployment_scenario": "managed_wan_v2",
        "site": [
            {
                "site_name": "Buckingham3",
                "site_basic_properties": {
                    "local_breakout": {},
                    "gatewaySite": false,
                    "site_type": "on_premise",
                    "cloud_service": "EDGE",
                    "site_address": {
                        "country": "US",
                        "state": "CA",
                        "street": "juniper",
                        "zip_code": "94085",
                        "city": "sunnyvale"
                    },
                    "device_redundancy": false,
                    "network_seg": false,
                    "device_template": [
                        {
                            "wan_link_info": [
                                {
                                    "wan_link_type": "Internet",
                                    "provider": "ATT",
                                    "wan_link": "WAN_0",
                                    "subscribed_bandwidth": 1000,
                                    "exclusive_for_local_breakout": false,
                                    "_sys_reserved_row": "273518d4-7c64-dc05-badd-6e681366582c",
                                    "cost": 10,
                                    "default_link": false,
                                    "local_breakout_enabled": false,
                                    "cost_currency": "USD",
                                    "preferred_breakout_link": false,
                                    "backup_link": false
                                },
                                {
                                    "wan_link_type": "Internet",
                                    "provider": "COMCAST",
                                    "wan_link": "WAN_1",
                                    "subscribed_bandwidth": 500,
                                    "exclusive_for_local_breakout": false,
                                    "_sys_reserved_row": "452d8511-c61b-0d75-3a6c-d7873c174f7a",
                                    "cost": 20,
                                    "default_link": false,
                                    "local_breakout_enabled": false,
                                    "cost_currency": "USD",
                                    "preferred_breakout_link": false,
                                    "backup_link": false
                                }
                            ],
                            "template_name": "SRX_Advanced_SDWAN_CPE_option_1",
                            "lan_segment": [
                                {
                                    "department": "Lab4",
                                    "dhcp": false,
                                    "ip_prefix": "10.10.10.10/24",
                                    "lan_ports": [
                                        "LAN_4"
                                    ],
                                    "lan_segment_name": "lan"
                                }
                            ],
                            "device_name": "s-srx-15549507"
                        }
                    ],
                    "0": {
                        "department": "D1",
                        "dhcp": false,
                        "ip_prefix": "10.10.10.10/24",
                        "lan_ports": [
                            "LAN_4"
                        ],
                        "lan_segment_name": "lan"
                    },
                    "site_role": "SPOKE",
                    "sla_mgmt": "COARSE",
                    "device_profile_name": "SRX as SD-WAN CPE",
                    "site_name": "s-srx-15549507",
                    "site_group": null,
                    "site_contact": {
                        "phone_number": "514325544",
                        "contact_name": "admin",
                        "email_address": "a@juniper.net"
                    },
                    "dvpn_params": {
                        "delete_dvpn_threshold": "1",
                        "create_dvpn_threshold": "5"
                    },
                    "topology": "Bandwidth Optimized"
                }
            }
        ]
    }
}
remove-site

https://www.juniper.net/documentation/en_US/cso5.1/information-products/pathway-pages/api-guide/index.html#remove-site

remove-site
https/<csp-ms-vm>/tssm/remove-site


JSON Object Input


{
    "input": {
        "tenant_name": "JEAN_LUC_KRIKER",
        "remove_tenant": false,
        "job_name_prefix": "Site Delete for JEAN_LUC_KRIKER by JLK",
        "sites": [
            {
                "site_name": "Buckingham3"
            }
        ],
        "forced": true
    }
}


Information from the Create Site json file:
-------------------------------------------
{
  "input": {
    "tenant_name":"JEAN_LUC_KRIKER",
    "deployment_scenario": "managed_wan_v2",
    "site": [
      {
        "site_name":"Buckingham2",
. . .