ProfileDelete

Delete a profile from the system.

Profiles can be deleted under the following conditions:

URL

/cubit_api/1/delete_profile

Authentication

This method requires authentication using an API key.

Parameters

profiles ( Required, once )
List of comma-separated, profile names to delete. Profiles must never have been used to build any hosts. The user invoking this API must have modify rights on the profiles.
Type: String
sig ( Required, once )
API authentication hash signature.
Type: String
userid ( Required, once )
The login name of the user initiating the request.
Type: String

Example Response

        
    Successful delete of the profile rhel3_base:
    <?xml version='1.0'?>
    <cubit version='1'>
        <status>OK</status>
        <output>rhel3_base</output>
    </cubit>

    If the user is unauthorized:
    <?xml version='1.0'?>
    <cubit version='1'>
        <error>0 of 1 profiles deleted successfully. Failed profiles below.</error>
        <output>rhel3_base: You do not have modify rights on this profile.</output>
    </cubit>

    If a deletion of profiles partially succeeds:
    <?xml version='1.0'?>
    <cubit version='1'>
        <error>7 of 8 profiles deleted successfully. Failed profiles below.</error>
        <output>rhel3_base: This profile has been used to build hosts.</output>
    </cubit>
    

Response Codes