UpdateSystemProfile_ManagedSystem Job

With HMC Version 10.3.1060.0, or later, the UpdateSystemProfile job is used to edit or update an existing system profile record in a managed system.

Resource

/rest/api/uom/ManagedSystem/{ManagedSystem_UUID}/do/UpdateSystemProfile

Request

Table 1. Request parameters
Request Parameter Description
systemProfileName Specifies the name of the system profile to be updated. This is a mandatory parameter.
systemProfileNewName Specifies a new name for the existing system profile.
logicalPartitionNames Specifies comma-separated names of logical partitions to be associated with the system profile.
logicalPartitionProfileNames Specifies comma-separated partition profile names for partitions that are associated with the system profile.

Response

Table 2. Response parameters
Response Parameter Description
returnCode Contains the return code value from the invoked Command-Line Interface (CLI).
result Contains the STDOUT output from the invoked CLI.
detailedStatus Contains the STDERR output from the invoked CLI.

Sample request payload

Table 3. Supported methods for JSON
Method Content-type Type Accept
PUT application/vnd.ibm.powervm.web+json JobRequest application/json
JSON:
{
  "JobRequest": {
    "Metadata": {
      "Atom": ""
    },
    "RequestedOperation": {
      "Metadata": {
        "Atom": ""
      },
      "OperationName": "UpdateSystemProfile",
      "GroupName": "ManagedSystem"
    },
    "JobParameters": {
      "Metadata": {
        "Atom": ""
      },
      "JobParameter": [
        {
          "ParameterName": "systemProfileName",
          "ParameterValue": "Test_System_Profile_1"
        },
        {
          "ParameterName": "systemProfileNewName",
          "ParameterValue": "Test_System_Profile_Update"
        },
        {
          "ParameterName": "logicalPartitionNames",
          "ParameterValue": "testPartition01,testPartition02,testPartition03"
        },
        {
          "ParameterName": "logicalPartitionProfileNames",
          "ParameterValue": "default_profile,default_profile,test_profile"
        }
      ]
    }
  }
}

 
Table 4. Supported methods for XML
Method Content-type Type
PUT application/vnd.ibm.powervm.web+xml JobRequest
XML:
<JobRequest
	xmlns="http://www.ibm.com/xmlns/systems/power/firmware/web/mc/2012_10/"
	xmlns:ns2="http://www.w3.org/XML/1998/namespace/k2" schemaVersion="V1_0">
	<Metadata>
		<Atom/>
	</Metadata>
	<RequestedOperation kxe="false" kb="CUR" schemaVersion="V1_0">
		<Metadata>
			<Atom/>
		</Metadata>
		<OperationName kxe="false" kb="ROR">UpdateSystemProfile</OperationName>
		<GroupName kxe="false" kb="ROR">ManagedSystem</GroupName>
	</RequestedOperation>
	<JobParameters kxe="false" kb="CUR" schemaVersion="V1_0">
		<Metadata>
			<Atom/>
		</Metadata>
		<JobParameter schemaVersion="V1_0">
			<Metadata>
				<Atom/>
			</Metadata>
			<ParameterName kb="ROR" kxe="false">systemProfileName</ParameterName>
			<ParameterValue kxe="false" kb="CUR">Test_System_Profile_1</ParameterValue>
		</JobParameter>
              <JobParameter schemaVersion="V1_0">
			<Metadata>
				<Atom/>
			</Metadata>
			<ParameterName kb="ROR" kxe="false">systemProfileNewName</ParameterName>
			<ParameterValue kxe="false" kb="CUR">Test_System_Profile_Update</ParameterValue>
		</JobParameter>
		<JobParameter schemaVersion="V1_0">
			<Metadata>
				<Atom/>
			</Metadata>
			<ParameterName kb="ROR" kxe="false">logicalPartitionNames</ParameterName>
			<ParameterValue kxe="false" kb="CUR">testPartition01,testPartition02, testPartition03</ParameterValue>
		</JobParameter>
		<JobParameter schemaVersion="V1_0">
			<Metadata>
				<Atom/>
			</Metadata>
			<ParameterName kb="ROR" kxe="false">logicalPartitionProfileNames</ParameterName>
			<ParameterValue kxe="false" kb="CUR">default_profile,default_profile,test_profile</ParameterValue>
		</JobParameter>
	</JobParameters>
</JobRequest>