Delete Resource

The delete resource operation removes the agent from a CSQ.

HTTPS Method

DELETE

URI

https://<server>/adminapi/csq/{csqid}/resources/{resourceid}

Example URI

https://uccx-server/adminapi/csq/{id}/resources/{resourceid}

Query Parameter

onNoImpact

AcceptApplication/XML, Application/JSON
HTTPS Success Code

200

HTTPS Failure Codes

401,403,404,424,500,503

Error Codes

Sample output XML— Delete Resource with Impact

HTTPS status code 424 Failed Dependency

When DELETE operation is performed with query parameter onNoImpact and there is an impact on other CSQs, HTTP status code 424 is returned with the following response body:

<?xml version="1.0" encoding="UTF-8"?>
<resources>
      <resource id="sjefferson">
          <status>IMPACT</status>
          <impacts>
              <impact type="REMOVES_FROM_OTHER_CSQ">
                  <csqs>csq1,csq2</csqs>
               </impact>
            </impacts>
        </resource>
</resources>

Failure Response

Sample output XML— Delete Resource


<?xml version="1.0" encoding="UTF-8"?>
<apiErrors>
    <apiError>
        <errorData>sjefferson</errorData>
        <errorMessage>Resource sjefferson not part of CSQ 1.</errorMessage>
        <errorType>Not Found</errorType>
        <i18n>
           <key>adminapi.resource.notPartOf.Csq</key>
           <args>
               <arg>sjefferson</arg>
               <arg>csq1</arg>
            </args>
          </i18n>
    </apiError>
</apiErrors>