[domain@localhost:9999 /] cd management-client-content=rollout-plans [domain@localhost:9999 management-client-content=rollout-plans] :read-resource-description(recursive=true,inherited=false,operations=true) { "outcome" => "success", "result" => { "description" => "Storage information about a set of named management update rollout plans useful to management clients that are stored in the domain content repository. The child resources under this resource provide access to these plans to management clients, allowing clients to use the plans by referencing them by name, avoiding the need to recreate them for each use.", "attributes" => {"hash" => { "type" => BYTES, "description" => "The hash of all stored rollout plans. Used internally by host controllers to locate rollout plan content.", "expressions-allowed" => false, "nillable" => true, "min" => 20L, "max" => 20L, "access-type" => "read-only", "storage" => "configuration" }}, "operations" => {"add" => { "operation-name" => "add", "description" => "Adds the capability to store named rollout plans.", "request-properties" => {"hash" => { "type" => BYTES, "description" => "The hash of all stored rollout plans. Used internally by host controllers to locate rollout plan content.", "expressions-allowed" => false, "required" => false, "nillable" => true, "min" => 20L, "max" => 20L }}, "reply-properties" => {} }}, "children" => {"rollout-plan" => { "description" => "A stored rollout plan.", "model-description" => {"*" => { "description" => "A stored rollout plan.", "attributes" => { "content" => { "type" => OBJECT, "description" => "The rollout plan content, in JBoss DMR form.", "expressions-allowed" => false, "nillable" => false, "access-type" => "read-write", "storage" => "runtime", "restart-required" => "no-services" }, "hash" => { "type" => BYTES, "description" => "The hash of the rollout plan content.", "expressions-allowed" => false, "nillable" => false, "min" => 20L, "max" => 20L, "access-type" => "read-only", "storage" => "runtime" } }, "operations" => { "store" => { "operation-name" => "store", "description" => "Updates the content of an existing persisted rollout plan, after first checking that the provided 'hash' parameter matches the current rollout plan hash. Fails if the hashes do not match. Using this operation instead of the 'write-attribute' operation for the 'content' attribute provides a guarantee that the update will not conflict with a previous update unknown to the caller.", "request-properties" => { "hash" => { "type" => BYTES, "description" => "The value the caller believes to be the hash of the rollout plan content that is being replaced.", "expressions-allowed" => false, "required" => true, "nillable" => false, "min" => 20L, "max" => 20L }, "content" => { "type" => OBJECT, "description" => "The updated rollout plan content, in JBoss DMR form.", "expressions-allowed" => false, "required" => true, "nillable" => false } }, "reply-properties" => {} }, "remove" => { "operation-name" => "remove", "description" => "Removes a rollout plan from the persistent store.", "request-properties" => {}, "reply-properties" => {} }, "add" => { "operation-name" => "add", "description" => "Adds a rollout plan to the persistent store.", "request-properties" => {"content" => { "type" => OBJECT, "description" => "The rollout plan content, in JBoss DMR form.", "expressions-allowed" => false, "required" => true, "nillable" => false }}, "reply-properties" => {} } }, "children" => {} }} }} } } [domain@localhost:9999 management-client-content=rollout-plans] ./rollout-plan=planA:add(content={"rollout-plan"=>{"in-series"=>[],"rollback-across-groups"=>false}}) { "outcome" => "success", "result" => { "domain-results" => {"step-1" => undefined}, "server-operations" => undefined } } [domain@localhost:9999 management-client-content=rollout-plans] ./rollout-plan=planA:read-resource(include-runtime=true) { "outcome" => "success", "result" => { "content" => {"rollout-plan" => { "in-series" => [], "rollback-across-groups" => false }}, "hash" => bytes { 0xbf, 0xfe, 0x25, 0x2e, 0x5c, 0x71, 0x4d, 0x93, 0xf6, 0xdc, 0x46, 0x53, 0x84, 0x8f, 0x79, 0x19, 0xfa, 0x07, 0x0c, 0x63 } } } [domain@localhost:9999 management-client-content=rollout-plans] ./rollout-plan=planA:write-attribute(name=content,value={"rollout-plan"=>{"in-series"=>[],"rollback-across-groups"=>true}}) { "outcome" => "success", "result" => { "domain-results" => {"step-1" => undefined}, "server-operations" => undefined } } [domain@localhost:9999 management-client-content=rollout-plans] ./rollout-plan=planA:read-resource(include-runtime=true) { "outcome" => "success", "result" => { "content" => {"rollout-plan" => { "in-series" => [], "rollback-across-groups" => true }}, "hash" => bytes { 0x8e, 0x7d, 0x4a, 0xd0, 0x69, 0xf8, 0x73, 0x04, 0x3a, 0x02, 0xe8, 0xdc, 0x0d, 0xad, 0x6d, 0x1b, 0xb4, 0x6e, 0xaa, 0xf0 } } } [domain@localhost:9999 management-client-content=rollout-plans] ./rollout-plan=planA:remove { "outcome" => "success", "result" => { "domain-results" => {"step-1" => undefined}, "server-operations" => undefined } } [domain@localhost:9999 management-client-content=rollout-plans] :read-children-names(child-type=rollout-plan) { "outcome" => "success", "result" => [] }