Rules

Create a rule job

Creates an asynchronous job that performs one or more rule management actions (such as creating, updating, and deleting authorization rules. Each update and delete action must specify the rule ID for an existing rule. All actions are performed in a single request. The request returns a vnd.sas.authorization.rule.job that contains a 'self' and 'ruleJobState' links that can be used to retrieve the entire job or to check the current state of the running job.

post/rules/jobs

Request

  • Base URL: http://example.com/authorization
  • URL: http://example.com/authorization/rules/jobs
  • Auth: none declared

Headers

Acceptstring

Specifies the desired format of the returned rule job. Supported media types are: <ul> <li>application/json</li> <li>application/vnd.sas.authorization.rule.job+json</li> <li>application/vnd.sas.authorization.rule.job+json;version=1</li> <li>application/vnd.sas.authorization.rule.job+json;version=2</li> </ul>

Content-Typestring

Specifies the format of the incoming rule job. Supported media types are: <ul> <li>application/json</li> <li>application/vnd.sas.authorization.rule.job+json</li> <li>application/vnd.sas.authorization.rule.job+json;version=1</li> <li>application/vnd.sas.authorization.rule.job+json;version=2</li> </ul>

Request body

state'pending' | 'running' | 'completed' | 'completedWithErrors' | 'failed'

Defines the current state of an action.

Response

Accepted. Returned if the rule job is created.

state'pending' | 'running' | 'completed' | 'completedWithErrors' | 'failed'

Defines the current state of an action.

Changes

No recorded changes to this operation across all 1 revision of this API.