是否可以使用PHP SOAP客户端通过SoftLayer API将票证响应添加为特定用户


Is it possible to add a ticket response as a specific user via the SoftLayer API using the PHP SOAP client?

我正在尝试使用SoftLayer API(通过PHP客户端)向现有票证添加更新,作为主帐户下的特定用户(API用户的兄弟)。

我试图实现的是,作为API用户,我调用SoftLayer_Ticket::addUpdate,传递一个SoftLayer_Ticket_Update对象,该对象看起来类似于:

{
    editorID: user1_id_here,
    editorType: "USER",
    entry: 'My update here'
}

我有user1的ID,但是当我在SoftLayer_Ticket_Update对象中传递它时,更新仍然作为API用户附加:

{
    createDate:"2016-05-17T08:24:50-07:00"
    editorId:api_users_id
    editorType:"USER"
    entry:"Another update for our glorious leader..."
    id:#########
    ticketId:########
}

票证更新代码段:

    $slClient = 'SoftLayer_client::getClient("Ticket", $ticketID);
    $ticketUpdateObj = new 'stdClass();
    $ticketUpdateObj->entry = $update;
    $ticketUpdateObj->editorId = ######;
    $ticketUpdateObj->editor = ######;
    $ticketUpdateObj->editorType = "USER";
    $result = $slClient->addUpdate($ticketUpdateObj);
    ...
    (do other stuff here)

对于SoftLayer API,是否有任何方法可以做到这一点?还是问题源于授予API用户的权限,或者我试图将更新作为兄弟添加到API用户?任何帮助都将不胜感激!

我们的平台比较旧,所以我们使用的是SoftLayer PHP SOAP客户端的旧版本(猜测大约在2010/2011年初)。

提前谢谢!

对不起,这不是可能的。您不能设置editorId,该值由系统使用更新票证的用户的userID设置。

问候