/api/space/schema-service/delete-schemas

The following operation is supported on this resource:

  • POST - Delete multiple DMI schemas
POST /delete-schemas Version 2

Delete multiple DMI schemas. This API executes a job to delete installed DMI schemas from Junos Space. A device family and a release/os-version must be specified for each schema to be deleted.

Sample Usage

This API makes an asynchronous method call, so you can, optionally, specify queue and schedule parameters:

POST /delete-schemas?queue=<queue>&schedule=<schedule>


Note: The queue URL denoted by <queue> must have been created already.


  • Parameters:
    Name Type URI Type Description Required
    queue Queue URL Query A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) N
    schedule cron-like-expression Query Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) N
  • Sample Input XML:
    <delete-schemas>
         <dmi-schema-infos>
               <dmi-schema-info>
                   <os-version>String</os-version>
                   <dev-family>String</dev-family>
               </dmi-schema-info>
         </dmi-schema-infos>
    </delete-schemas>

  • Sample Input JSON:
    {
       "delete-schemas" : {
         "dmi-schema-infos" : {
           "dmi-schema-info" : {
             "os-version" : "String" ,
             "dev-family" : "String"
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: DeleteUnusedSchema