Set Property CIM Operation

Return Request

If unsuccessful, one of the following status codes MUST be returned by this method, where the first applicable error in the list (starting with the first element of the list, and working down) is the error returned. Any additional method-specific interpretation of the error in is given in parentheses.

  • CIM_ERR_ACCESS_DENIED
  • CIM_ERR_INVALID_NAMESPACE
  • CIM_ERR_INVALID_PARAMETER (including missing,duplicate, unrecognized or otherwise incorrect parameters)
  • CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace)
  • CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance does not exist in the specified namespace)
  • CIM_ERR_NO_SUCH_PROPERTY (the CIM Instance does exist, but the requested CIMProperty does not)
  • CIM_ERR_FAILED (some other unspecified error occurred)

Additional Information

The setProperty operation sets a single property value in a CIM Instance in the target Namespace. 

NameSpace The NameSpace parameter is a string that defines the target namespace. 

InstanceName The InstanceName input parameter specifies the name of the Instance (model path) for which the CIMProperty value is to be updated. 

PropertyName The PropertyName input parameter specifies the name of the CIMProperty whose value is to be updated. 

Newvalue The NewValue input parameter specifies the new value for the CIMProperty (which may be NULL). 


Pegasus C++ API as defined in Operations.h

    virtual void setProperty(
        const String& nameSpace,
		const CIMReference& instanceName,
		const String& propertyName,
		const CIMValue& newValue = CIMValue()) = 0;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值