create-or-update-resource-subscription

subtitle

CreateOrUpdateResourceSubscription

version

0.9.141

Description

Creates or Updates the subscription with events and channel preferences provided by user.

Synopsis

  create-or-update-resource-subscription
[--resource-crn <value>]
[--event-channel-preferences <value>]
[--parent-resource-crn <value>]
[--existing-subscription-id <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--resource-crn (string)

CRN of resource for which user want to subscribe.

--event-channel-preferences (array)

Channel preference for the individual events.

Shorthand Syntax:

eventTypeId=string,channels=string,string,eventSeverityLists=string,string ... (separate items with spaces)

JSON Syntax:

[
  {
    "eventTypeId": "string",
    "channels": ["UNKNOWN"|"EMAIL"|"IN_APP"|"SLACK", ...],
    "eventSeverityLists": ["string", ...]
  }
  ...
]

--parent-resource-crn (string)

Parent resource crn for which the resource authorization has to be done.

--existing-subscription-id (string)

Existing subscription identifier, an optional parameter to be passed when updating the existing subscription.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

subscriptionDetails -> (object)

Contains details of the subscription created.

subscriptionId -> (string)

Identifier of the newly created subscription.

resourceCrn -> (string)

The resource-crn of the subscription.

userCrn -> (string)

The userCrn of the subscription.

Form Factors

public, private