REST steps


A step is an important subprocess model of BMC Release Process Management that belongs to requests. Steps can be grouped into procedures for reuse and represent manual or automated work to be completed for a release.

You can use the aasm_event parameter in REST PUT requests for steps to manage step status, including starting, holding, blocking, resetting, changing a step to the problem state and resolving the problem state. For more information, see State machine events.

Warning

Note

The include_except and alone filters are available in only 5.0.03.004 and later versions of RPM. Use these filters to limit the data in API response and hence, reduce the API response time.

GET /v1/steps

Returns all steps.

Filters

  • aasm_state—String value for the Acts as State Machine (aasm) state of the step (for example: locked, ready, in_process, blocked, problem, being_resolved, complete)
  • name—String for the step name
  • request_id—Integer ID of the parent request
  • running—If set to true, returns all steps in process, ready, or running aasm_states
  • owner_id—User ID of the owner of a step
  • installed_component_id—Integer ID of the installed component
  • component_version—String value of the component version
  • version_tag_id—Integer ID of the version tag
  • custom_ticket_id—Integer ID of the custom ticket
  • package_template_id—Integer ID of the package template
  • script_id—Integer ID of the script
  • runtime_phase_id—Integer ID of the runtime phase
  • phase_id—Integer ID of the phase
  • procedure_id—Integer ID of the free floating procedure
  • parent_id—Integer ID of the step acting as a procedure that contains steps
  • category_id—Integer ID of the category
  • work_task_id—Integer ID of the work task
  • include_except—Comma-separated strings of the top-level associated items to exclude from the response. You can remove only top-level associated items from the response and these associated items should be a collection (zero to many) of other objects (not a simple property—string, numeric, boolean, and so on). For example, you can remove components from an application but you cannot remove route gates (it is not a top-level associated item) or app_version (it is a simple property). If you provide an incorrect associated item name (for example, the associated item does not exist, is not at the top level, or is a property), the name is ignored. See the table below for the items and their associated items.
  • alone—Boolean value to return only the item or the associated items as well along with the item. If set to false (default), item and associated item details are returned; if set to true, only item details are returned. See the table below for the items and their associated items. See the table below for the items and their associated items.
  • continue_on_failure—Boolean value to determine the execution flow of a request if the step fails. If the value is true, the request continues running when the step fails. If it is false, the request stops running when the step fails.

Item

Associated items

steps

parent, owner, script, work_task, phase, runtime_phase, installed_component, component, request, category, floating_procedure, package_template, version_tag, package, package_instance

Common attributes

  • format—Ensure to include an accept header or add .xml or .json to the last path element
  • token—Your API Token for authentication

Errors caused

  • ERROR 403 Forbidden—Occurs when the token is invalid
  • ERROR 404 Not Found—Occurs when no records are found

Examples

To test this method, insert this URL or your valid API key and application host into a browser or HTTP client like wget or curl. For example:

curl -i -H "accept: text/xml" -X GET http://[rails_host]/v1/steps?token=[api_token]
curl -i -H "accept: application/json" -X GET http://[rails_host]/v1/steps?token=[api_token]
curl -i -H "Content-type: application/json" -H "Content-type: application/json" -X GET -d '{"filters": {"request_id":"[id_of_request]"}}' http://[rails_host]/v1/steps?token=[api_token]

Filter example:

curl -i -H "accept: application/json" -H "Content-type: application/json" -X GET -d '{ "filters": { "include_except":"installed_component,component,request" }}' https://[rails_host]/v1/steps?token=[api_token]

GET /v1/steps/[id]

Returns a step by ID.

Filters

notify—Object that allows you to send email notifications from the step REST API call. The notify object has the following parameters:

  • recipients—String for the email addresses of the notification recipients, separated by commas. If you do not specify this parameter, the notification is sent to the default step notification recipients. For more information, see Managing-requests.
  • subject—String for the notification subject. If you do not specify this parameter, the following subject template is used:
    Subject: Notification from Request Number <request_number>, Step: <step_position>:<step_name>
  • body—String for the notification body text. This body value is attached to the following notification text:

    <request_number><request_name>
    "Request ID: <request_ID> (this value should be used for accessing through the REST API)"

    Message from <script_name> : <time of start>

    <body>

  • include_except—Comma-separated strings of the top-level associated items to exclude from the response. You can remove only top-level associated items from the response and these associated items should be a collection (zero to many) of other objects (not a simple property—string, numeric, boolean, and so on). For example, you can remove components from an application but you cannot remove route gates (it is not a top-level associated item) or app_version (it is a simple property). If you provide an incorrect associated item name (for example, the associated item does not exist, is not at the top level, or is a property), the name is ignored. See the table below for the items and their associated items.
  • alone—Boolean value to return only the item or the associated items as well along with the item. If set to false (default), item and associated item details are returned; if set to true, only item details are returned. See the table below for the items and their associated items. See the table below for the items and their associated items.
  • continue_on_failure—Boolean value to determine the execution flow of a request if the step fails. If the value is true, the request continues running when the step fails. If it is false, the request stops running when the step fails.

Item

Associated items

steps

parent, owner, script, work_task, phase, runtime_phase, installed_component, component, request, category, floating_procedure, package_template, version_tag, package, package_instance

Common attributes

  • id—Numerical unique ID for record
  • format—Ensure to include an accept header or add .xml or .json to the last path element
  • token—Your API Token for authentication

Errors caused

  • ERROR 403 Forbidden—Occurs when the token is invalid
  • ERROR 404 Not found—Occurs when record to show is not found

Examples

To test this method, insert this URL or your valid API key and application host into a browser or HTTP client like wget or cURL. For example:

curl -i -H "accept: text/xml" -X GET http://[rails_host]/v1/steps/[id]?token=[api_token]
curl -i -H "accept: application/json" -X GET http://[rails_host]/v1/steps/[id]?token=[api_token]

Filter example:

curl -i -H "accept: application/json" -H "Content-type: application/json" -X GET -d '{ "filters": { "include_except":"installed_component,component,request" }}' https://[rails_host]/v1/steps/[id]?token=[api_token]

POST /v1/steps

Creates a new step from posted data.

Required attributes

  • owner_id—Integer ID of the owner (User) (required unless a procedure)
  • owner_type—String value of the owner type (User, Group)
  • script_id—Integer ID of the script (required if manual is false)
  • script_type—String value of the script type (BladelogicScript, HudsonScript, CapistranoScript) (required if manual is false)
  • request_id—Integer ID of the request (required if not a member of a procedure)
  • procedure_id—Integer ID of the procedure (required if a member of a procedure)

Optional attributes

  • name—String name of the request
  • manual—Boolean value if manual step (not an automation step) (defaults to true; if set to false, script_id must be set)
  • procedure—Boolean value if the step is a procedure container (procedure_id required if this is true)
  • installed_component_id—Integer ID of the installed component for the step (required if component_id is set)
  • component_id—Integer ID of the component for the step (required if installed_component_id is set)
  • description—Text description of the step
  • version_tag_id—Integer ID of a version tag if using integration server for version control
  • own_version—Boolean value for whether installed component version should be updated to this step's version value upon completion (defaults to false)
  • component_version—String for version of the assigned installed component (see also "own_version" Boolean value to commit that value on step completion)
  • custom_ticket_id—Integer ID for a custom ticket
  • release_content_item_id—Integer ID of a release content item
  • change_request_id—Integer ID of a ServiceNow change request
  • completion_state—String for ServiceNow change request step completion state values
  • on_plan—Boolean value for whether the step should appear on the Operations Tickets lists in a Release Plan
  • package_template_id—Integer ID for a package template
  • package_template_properties—String for package template properties
  • phase_id—Integer ID for a phase
  • runtime_phase_id—Integer ID for a runtime phase
  • should_execute—Boolean value for inclusion in request execution plan (defaults to true)
  • execute_anytime—Boolean value for anytime execution (defaults to false)
  • start_by—Time stamp for starting date and time
  • category_id—Integer ID for related category
  • location_detail—String for detailed location information
  • estimate—Integer for estimated time in minutes
  • different_level_from_previous—Boolean value for serial (true) or parallel (false) step execution behavior (defaults to true)
  • start_at_scheduled_time—Boolean value that shows if a step starts at the scheduled time (defaults to false)

    Warning

    Note

    If the start_at_scheduled_time attribute is set to true, the start_by_date hour minute meridian attributes are required.

    • start_by_date—Date when a scheduled step should start
    • start_by_hour—Hour when a scheduled step should start
    • start_by_minute—Minute when a scheduled step should start
    • start_by_meridian—A.M. or P.M. of the scheduled step time
  • start_automatically —Boolean value that shows if a step must start automatically (defaults to false)
  • server_names—An array of server names used in the step
  • server_ids—An array of server IDs used in the step

    Warning

    Note

    Either the server_name or server_id attribute can be used in the same request.

  • deployment_dependency—Boolean value that indicates whether the execution of this step is dependent on a request or step (defaults to false)
  • dependent_request_id—ID of the request on which the execution of the current step is dependent. This attribute is required if you have set the deployment_dependency attribute to true.
  • dependent_step_id—ID of the step on which the execution of the current step is dependent. This attribute is optional if you have set the deployment_dependency attribute to true and set the value of the dependent_request_id attribute. 
  • continue_on_failure—Boolean value to determine the execution flow of a request if the step fails. If the value is true, the request continues running when the step fails. If it is false, the request stops running when the step fails.

Common attributes

  • format—Ensure to include an accept header or add .xml or .json to the last path element
  • token—Your API token for authentication

Filters

  • include_except—Comma-separated strings of the top-level associated items to exclude from the response. You can remove only top-level associated items from the response and these associated items should be a collection (zero to many) of other objects (not a simple property—string, numeric, boolean, and so on). For example, you can remove components from an application but you cannot remove route gates (it is not a top-level associated item) or app_version (it is a simple property). If you provide an incorrect associated item name (for example, the associated item does not exist, is not at the top level, or is a property), the name is ignored. See the table below for the items and their associated items.
  • alone—Boolean value to return only the item or the associated items as well along with the item. If set to false (default), item and associated item details are returned; if set to true, only item details are returned. See the table below for the items and their associated items. See the table below for the items and their associated items.

Item

Associated items

steps

parent, owner, script, work_task, phase, runtime_phase, installed_component, component, request, category, floating_procedure, package_template, version_tag, package, package_instance

Errors caused

  • ERROR 403 Forbidden—Occurs when the token is invalid
  • ERROR 422 Unprocessable entity—Occurs when validation fails and objects and errors are returned

Examples

To test this method, insert this URL or your valid API key and application host into a browser or HTTP client like wget or curl. For example:

curl -i -H "accept: text/xml" -H "Content-type: text/xml" -X POST -d '<step><request_id>1</request_id><name>Step 2</name><owner_id>1</owner_id><owner_type>User</owner_type><installed_component_id>5</installed_component_id></step>' http://[rails_host]/v1/steps?token=[api_token]
curl -i -H "accept: application/json" -H "Content-type: application/json" -X POST -d '{"step": {"request_id":1,"name":"Step 2", "owner_id":1, "owner_type":"User", "installed_component_id":5 }}' http://[rails_host]/v1/steps/?token=[api_token]
curl -i -H "accept: application/json" -H "Content-type: application/json" -X POST -d '{"step":{"request_id":"26", "name":"Step_3", "owner_id":1, "owner_type":"User", "component_id":6, "start_at_scheduled_time":"true", "start_by_date":"16/10/2015", "start_by_hour":"10", "start_by_minute":"00", "start_by_meridian":"PM"}}' http://[rails_host]/v1/steps/?token=[api_token]

The following example creates the step, Step_3 with various other attributes. The execution of Step_3 is dependent on the step with step ID, 30. 

curl -i -H "accept: application/json" -H "Content-type: application/json" -X POST -d '{"step":{"request_id":"26", "name":"Step_3", "owner_id":1, "owner_type":"User", "component_id":6, "start_at_scheduled_time":"true", "start_by_date":"16/10/2015", "start_by_hour":"10", "start_by_minute":"00", "start_by_meridian":"PM", "deployment_dependency":"true", "dependent_request_id":"1029", "dependent_step_id":"30"}}' http://[rails_host]/v1/steps/?token=[api_token]

Filter example:

curl -i -H "accept: application/json" -H "Content-type: application/json" -X POST -d '{"step": {"request_id":1,"name":"Rest Step Post", "owner_id":1, "owner_type":"User", "installed_component_id":5 }, "filters": {"include_except" : "installed_component,component,request"}}' https://[rails_host]/v1/steps/?token=[api_token]

The following example shows a request when the continue_on_failure flag is set to true:

curl -i -k -H "accept: application/json" -H "Content-type: application/json" -X POST -d '{"step": {"request_id":1,"name":"Step 2", "continue_on_failure": true, "owner_id":1, "owner_type":"User", "installed_component_id":5 }}' https://[rails_host]/v1/steps/?token=[api_token]

PUT /v1/steps/[id]

Updates an existing step with values from a posted document.

Editable attributes

  • owner_id—Integer ID of the owner (User) (required unless a procedure)
  • owner_type—String value of the owner type (User, Group)
  • script_id—Integer ID of the script (required if manual is false)
  • script_type—String value of the script type (BladelogicScript, HudsonScript, CapistranoScript) (required if manual is false)
  • request_id— Integer ID of the request (required if not a member of a procedure)
  • procedure_id—Integer ID of the procedure (required if a member of a procedure)
  • name—String name of the request
  • manual—Boolean value if manual step (not automation step) (defaults to true, if set to false script_id must be set)
  • procedure—Boolean value if the step is a procedure container (procedure_id required if this is true)
  • installed_component_id—Integer ID of the installed component for the step (required if component_id is set)
  • component_id—Integer ID of the component for the step (required if installed_component_id is set)
  • description—Text description of the step
  • version_tag_id—Integer ID of a version tag if using integration server for version control
  • own_version—Boolean value for whether installed component version should be updated to this step's version value upon completion (defaults to false)
  • component_version—String for version of the assigned installed component (see also "own_version" Boolean value to commit that value on step completion)
  • custom_ticket_id—Integer ID for a custom ticket
  • release_content_item_id—Integer ID of a release content item
  • change_request_id—Integer ID of a ServiceNow change request
  • completion_state—String for ServiceNow change request step completion state values
  • on_plan—Boolean value for whether the step should appear on the Operations Tickets lists in a release plan
  • package_template_id—Integer ID for a package template
  • package_template_properties—String for package template properties
  • phase_id—Integer ID for a phase
  • runtime_phase_id—Integer ID for a runtime phase
  • should_execute—Boolean value for inclusion in request execution plan (defaults to true)
  • execute_anytime—Boolean value for anytime execution (defaults to false)
  • start_by—Time stamp for starting date and time
  • category_id—Integer ID for related category
  • location_detail—String for detailed location information
  • estimate—Integer for estimated time in minutes
  • different_level_from_previous—Boolean for serial (true) or parallel (false) step execution behavior (defaults to true)
  • start_at_scheduled_time—Boolean value that shows if a step starts at the scheduled time (defaults to false)

    Warning

    If the start_at_scheduled_time attribute is set to true, the start_by_date/ hour/ minute/ meridian attributes are required.

    • start_by_date—Date when a scheduled step should start
    • start_by_hour—Hour when a scheduled step should start
    • start_by_minute— Minute when a scheduled step should start
    • start_by_meridian—A.M. or P.M. of the scheduled step time
  • start_automatically—Boolean value that shows if a step must start automatically (defaults to false)
  • server_name—String value for one server name or array of strings for many server names used in the step
  • server_id—Integer value for one server ID or array of integers for many server IDs used in the step

    Warning

    Notes

    • Either the server_name or server_id attribute can be used in the same request.
    • When you update servers used in a step with a new value, the new value overwrites the previous value. For example, if you have server_ids: [1, 2] used in a step, and then you update the step with server_ids: [3, 4], the step now is associated with server_ids: [3, 4] only.
  • deployment_dependency—Boolean value that indicates whether the execution of this step is dependent on a request or step (defaults to false)
  • dependent_request_id—ID of the request on which the execution of the current step is dependent. This attribute is required if you have set the deployment_dependency attribute to true.
  • dependent_step_id—ID of the step on which the execution of the current step is dependent. This attribute is optional if you have set the deployment_dependency attribute to true and set the value of the dependent_request_id attribute. 
  • continue_on_failure—Boolean value to determine the execution flow of a request if the step fails. If the value is true, the request continues running when the step fails. If it is false, the request stops running when the step fails.

State Machine Events

aasm_event—Moves a step to another state. Supported events are the following:

  • start—Starts the step that is in the Ready state
  • block—Moves a step from the Ready or In Process state to the Blocked state
  • done—Moves a step from In Process state to the Completed state
  • reset—Resets the step from the Completed state to the Locked state. Before using the reset event, ensure that the request that the step is assigned to is in the planned state
  • problem—Moves the step and the request that the step is assigned to the Problem state
  • resolve—Resolves the step with the Problem state and restarts the step. Statuses of the step and the request that the step is assigned to changes to In Process
  • force_resolve—Resolves the step with the Problem state and restarts the step. Only the status of the step changes to In Process
  • unblock_ready—Moves a step from the Blocked to the Ready state{{code language="none"}}


    {{/code}}
  • unblock_in_process—Moves a step from the Blocked to the In Process state
Warning

Note

The state of the step cannot be changed randomly. If an incorrect state is provided the step status does not change.

Common attributes

  • format—Ensure to include an accept header or add .xml or .json to the last path element
  • token—Your API token for authentication

Filters

  • include_except—Comma-separated strings of the top-level associated items to exclude from the response. You can remove only top-level associated items from the response and these associated items should be a collection (zero to many) of other objects (not a simple property—string, numeric, boolean, and so on). For example, you can remove components from an application but you cannot remove route gates (it is not a top-level associated item) or app_version (it is a simple property). If you provide an incorrect associated item name (for example, the associated item does not exist, is not at the top level, or is a property), the name is ignored. See the table below for the items and their associated items.
  • alone—Boolean value to return only the item or the associated items as well along with the item. If set to false (default), item and associated item details are returned; if set to true, only item details are returned. See the table below for the items and their associated items. See the table below for the items and their associated items.

Item

Associated items

steps

parent, owner, script, work_task, phase, runtime_phase, installed_component, component, request, category, floating_procedure, package_template, version_tag, package, package_instance

Errors caused

  • ERROR 403 Forbidden—Occurs when the token is invalid
  • ERROR 404 Not found—Occurs when record to update is not found
  • ERROR 422 Unprocessable entity—Occurs when validation fails and objects and errors are returned

Examples

To test this method, insert this URL or your valid API key and application host into a browser or HTTP client like wget or curl. For example:

curl -i -H "accept: text/xml" -H "Content-type: text/xml" -X PUT -d '<step><name>Renamed Step</name></step>' http://[rails_host]/v1/steps/[id]?token=[api_token]
curl -i -H "accept: application/json" -H "Content-type: application/json" -X PUT -d '{ "step": { "name" : "Renamed Step"}}'  http://[rails_host]/v1/steps/[id]?token=[api_token]
curl -i -H "accept: text/xml" -H "Content-type: text/xml" -X PUT -d '<step><start_at_scheduled_time>true</start_at_scheduled_time><start_by_date>16/09/2015</start_by_date><start_by_hour>10</start_by_hour><start_by_minute>00</start_by_minute><start_by_meridian>PM</start_by_meridian></step>' http://[rails_host]/v1/steps/[id]?token=[api_token]
curl -i -H "accept: application/json" -H "Content-type: application/json" -X PUT -d '{"step":{"name":"Step_4", "start_at_scheduled_time":"true", "start_by_date":"16/09/2015", "start_by_hour":"10", "start_by_minute":"00", "start_by_meridian":"PM"}}' http://[rails_host]/v1/steps/[id]?token=[api_token]

The following example updates the step, Step_4 with various other attributes. The execution of Step_4 is dependent on the step with step ID, 30. 

curl -i -H "accept: application/json" -H "Content-type: application/json" -X PUT -d '{"step":{"name":"Step_4", "start_at_scheduled_time":"true", "start_by_date":"16/09/2015", "start_by_hour":"10", "start_by_minute":"00", "start_by_meridian":"PM" "deployment_dependency":"true", "dependent_request_id":"1029", "dependent_step_id":"30"}}' http://[rails_host]/v1/steps/[id]?token=[api_token]

The following example updates the step, Step_4. This step is no more dependent on any request or step. 

curl -i -H "accept: application/json" -H "Content-type: application/json" -X PUT -d '{"step":{"name":"Step_4", "start_at_scheduled_time":"true", "start_by_date":"16/09/2015", "start_by_hour":"10", "start_by_minute":"00", "start_by_meridian":"PM" "deployment_dependency":"false"}}' http://[rails_host]/v1/steps/[id]?token=[api_token]

Filter example:

curl -i -H "accept: application/json" -H "Content-type: application/json" -X PUT -d '{ "step": { "name" : "Renamed Step 1"}, "filters": { "include_except":"installed_component,component,request" }}' https://[rails_host]/v1/steps/[id]?token=[api_token]

The following example shows a request when the continue_on_failure flag is set to true:

curl -i -k -H "accept: application/json" -H "Content-type: application/json" -X PUT -d '{ "step": { "name" : "Renamed Step", "continue_on_failure": true}}' https://[rails_host]/v1/steps/[id]?token=[api_token]

DELETE /v1/steps/[id]

Deletes a step.

Common attributes

  • id—Numerical unique ID for record
  • format—Ensure to include an accept header or add .xml or .json to the last path element
  • token—Your API Token for authentication

Errors caused

  • ERROR 403 Forbidden—Occurs when the token is invalid
  • ERROR 404 Not found—Occurs when no records are found

Examples

To test this method, insert this URL or your valid API key and application host into a browser or HTTP client like wget or curl. For example:

curl -i -H "accept: text/xml" -X DELETE http://[rails_host]/v1/steps/[id]?token=[api_token]
curl -i -H "accept: application/json" -H "Content-type: application/json" -X DELETE http://[rails_host]/v1/steps/[id]?token=[api_token]

Sample output

The following JSON is a sample output from GET /v1/steps/19:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-UA-Compatible: IE=Edge,chrome=1
ETag: "d59ef1823341ac237579b7804f7dec82"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5204b9d1687f6b61f2824b436c0eed98
X-Runtime: 0.134000
Date: Thu, 12 Nov 2015 14:23:14 GMT
X-Rack-Cache: miss
Content-Type: application/json;charset=utf-8
Content-Length: 2082

{"aasm_state":"locked",
"complete_by":"2015-11-13T15:14:00-05:00",
"component_version":"Component_version",
"create_new_package_instance":false,
"created_at":"2015-11-12T08:52:06-05:00",
"custom_ticket_id":null,
"description":"Sample description",
"different_level_from_previous":true,
"estimate":12,
"execute_anytime":false,
"id":365814,
"latest_package_instance":false,
"location_detail":null,
"manual":false,
"name":"Sample step",
"on_plan":false,
"own_version":true,
"owner_type":"User"
,"position":3,
"priority":"2.0",
"procedure":false,
"ready_at":null,
"release_content_item_id":null,
"script_type":"General",
"should_execute":true,
"start_at_scheduled_time":false,
"start_by":"2015-11-13T15:02:00-05:00",
"updated_at":"2015-11-12T09:17:29-05:00",
"work_finished_at":null,
"work_started_at":null,
"number":"3",
"property_values":{},
"all_servers":{"selected_servers":{"target_servers":{"Servers":[]},"alternate_servers":[]},
"available_servers":{"Servers":[]}},
"owner":{"email":"test@qa.qa","id":1,"login":"rlmadmin"},
"script":{"id":6,"name":"Direct_execute"},
"work_task":{"id":10000,"name":"Configuration"},
"phase":{"id":10002,"name":"Approval"},
"runtime_phase":{"id":10001,"name":"Approved"},
"installed_component":
{"application_component_id":16162,
"application_environment_id":14982,
"id":23162,
"app":
{"a_sorting_comps":false,
"a_sorting_envs":false,
"active":true,
"app_version":null,
"created_at":"2015-11-12T06:49:00-05:00",
"default":false,
"id":12681,
"name":"Application",
"strict_plan_control":false,
"updated_at":"2015-11-12T06:49:00-05:00"},
"component":
{"active":true,
"created_at":"2015-11-12T06:49:01-05:00",
"id":12982,
"name":"Component",
"updated_at":"2015-11-12T06:49:01-05:00"},
"environment":
{"active":true,
"created_at":"2015-11-12T06:49:01-05:00",
"default":false,
"default_server_group_id":null,
"deployment_policy":"opened",
"environment_type_id":null,
"id":10562,
"name":"Environment",
"updated_at":"2015-11-12T06:49:01-05:00"}},
"component":{"id":12982,"name":"Component"},
"request":{"aasm_state":"planned","id":188554,"name":"Request","number":189554},
"version_tag":{"id":87131,"name":"Component_version"}}

The following XML is a sample output from GET /v1/steps/19:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-UA-Compatible: IE=Edge,chrome=1
ETag: "9a5213ff9ab9486acef4cb90d36b7772"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: d8bce38247b2b57f44ff7b470e1ee8d4
X-Runtime: 0.225000
Date: Thu, 12 Nov 2015 14:17:42 GMT
X-Rack-Cache: miss
Content-Type: application/xml;charset=utf-8
Content-Length: 3235

<step>
 <aasm-state>locked</aasm-state>
 <complete-by type="datetime">2015-11-13T15:14:00-05:00</complete-by>
 <component-version>Component_version</component-version>
 <create-new-package-instance type="boolean">false</create-new-package-instance>
 <created-at type="datetime">2015-11-12T08:52:06-05:00</created-at>
 <custom-ticket-id type="integer" nil="true"/>
 <description>Sample description</description>
 <different-level-from-previous type="boolean">true</different-level-from-previous>
 <estimate type="integer">12</estimate>
 <execute-anytime type="boolean">false</execute-anytime>
 <id type="integer">19</id>
 <latest-package-instance type="boolean">false</latest-package-instance>
 <location-detail nil="true"/>
 <manual type="boolean">false</manual>
 <name>Sample step</name>
 <on-plan type="boolean">false</on-plan>
 <own-version type="boolean">true</own-version>
 <owner-type>User</owner-type>
 <position type="integer">3</position>
 <priority type="decimal">2.0</priority>
 <procedure type="boolean">false</procedure>
 <ready-at type="datetime" nil="true"/>
 <release-content-item-id type="integer" nil="true"/>
 <script-type>General</script-type>
 <should-execute type="boolean">true</should-execute>
 <start-at-scheduled-time type="boolean">false</start-at-scheduled-time>
 <start-by type="datetime">2015-11-13T15:02:00-05:00</start-by>
 <updated-at type="datetime">2015-11-12T09:17:29-05:00</updated-at>
 <work-finished-at type="datetime" nil="true"/>
 <work-started-at type="datetime" nil="true"/>
 <number>3</number>
 <property-values>
 </property-values>
 <all-servers>
   <selected-servers>
     <target-servers>
       <Servers type="array"/>
     </target-servers>
     <alternate-servers type="array"/>
   </selected-servers>
   <available-servers>
     <Servers type="array"/>
   </available-servers>
 </all-servers>
 <owner type="User">
   <email>test@qa.qa</email>
   <id type="integer">1</id>
   <login>rlmadmin</login>
 </owner>
 <script>
   <id type="integer">6</id>
   <name>Direct_execute</name>
 </script>
 <work-task>
   <id type="integer">10000</id>
   <name>Configuration</name>
 </work-task>
 <phase>
   <id type="integer">10002</id>
   <name>Approval</name>
 </phase>
 <runtime-phase>
   <id type="integer">10001</id>
   <name>Approved</name>
 </runtime-phase>
 <installed-component>
   <application-component-id type="integer">16162</application-component-id>
   <application-environment-id type="integer">14982</application-environment-id>
   <id type="integer">23162</id>
   <app>
     <id type="integer">12681</id>
   </app>
   <component>
     <id type="integer">12982</id>
   </component>
   <environment>
     <id type="integer">10562</id>
   </environment>
 </installed-component>
 <component>
   <id type="integer">12982</id>
   <name>Component</name>
 </component>
 <request>
   <aasm-state>planned</aasm-state>
   <id type="integer">188554</id>
   <name>Request</name>
   <number type="integer">189554</number>
 </request>
 <version-tag>
   <id type="integer">87131</id>
   <name>Component_version</name>
 </version-tag>
</step>

Related topic

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Release Process Management 5.0.07