{
"operation-name" : "add",
"description" : "Adds previously uploaded content to the list of content available for use. Does not actually deploy the content unless the 'enabled' parameter is 'true'.",
"request-properties" : {
"runtime-name" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Name by which the deployment should be known within a server's runtime. This would be equivalent to the file name of a deployment file, and would form the basis for such things as default Java Enterprise Edition application and module names. This would typically be the same as 'name', but in some cases users may wish to have two deployments with the same 'runtime-name' (e.g. two versions of \"foo.war\") both available in the deployment content repository, in which case the deployments would need to have distinct 'name' values but would have the same 'runtime-name'.",
"expressions-allowed" : false,
"required" : false,
"nillable" : true,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"content" : {
"type" : {
"TYPE_MODEL_VALUE" : "LIST"
},
"description" : "List of pieces of content that comprise the deployment.",
"expressions-allowed" : false,
"required" : true,
"nillable" : false,
"min-length" : 1,
"max-length" : 1,
"stability" : "default",
"value-type" : {
"input-stream-index" : {
"type" : {
"TYPE_MODEL_VALUE" : "INT"
},
"description" : "The index into the operation's attached input streams of the input stream that contains deployment content that should be uploaded to the domain's or standalone server's deployment content repository.",
"expressions-allowed" : false,
"required" : true,
"nillable" : true,
"alternatives" : [
"hash",
"bytes",
"url",
"path",
"relative-to",
"empty"
],
"min" : 1,
"max" : 2147483647,
"filesystem-path" : true,
"attached-streams" : true,
"stability" : "default"
},
"hash" : {
"type" : {
"TYPE_MODEL_VALUE" : "BYTES"
},
"description" : "The hash of managed deployment content that has been uploaded to the domain's or standalone server's deployment content repository.",
"expressions-allowed" : false,
"required" : true,
"nillable" : true,
"alternatives" : [
"input-stream-index",
"bytes",
"url",
"path",
"relative-to",
"empty"
],
"min-length" : 20,
"max-length" : 20,
"stability" : "default"
},
"bytes" : {
"type" : {
"TYPE_MODEL_VALUE" : "BYTES"
},
"description" : "Byte array containing the deployment content that should uploaded to the domain's or standalone server's deployment content repository.",
"expressions-allowed" : false,
"required" : true,
"nillable" : true,
"alternatives" : [
"input-stream-index",
"hash",
"url",
"path",
"relative-to",
"empty"
],
"stability" : "default"
},
"url" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "The URL at which the deployment content is available for upload to the domain's or standalone server's deployment content repository.. Note that the URL must be accessible from the target of the operation (i.e. the Domain Controller or standalone server).",
"expressions-allowed" : false,
"required" : true,
"nillable" : true,
"alternatives" : [
"input-stream-index",
"hash",
"bytes",
"path",
"relative-to",
"empty"
],
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"path" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Path (relative or absolute) to unmanaged content that is part of the deployment.",
"expressions-allowed" : false,
"required" : true,
"nillable" : true,
"alternatives" : [
"input-stream-index",
"hash",
"bytes",
"url",
"empty"
],
"requires" : ["archive"],
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"relative-to" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Name of a system path to which the value of the 'path' is relative. If not set, the 'path' is considered to be absolute.",
"expressions-allowed" : false,
"required" : false,
"nillable" : true,
"alternatives" : [
"input-stream-index",
"hash",
"bytes",
"url",
"empty"
],
"requires" : ["path"],
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"archive" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Flag indicating whether unmanaged content is a zip archive (true) or exploded (false).",
"expressions-allowed" : false,
"required" : false,
"nillable" : true,
"alternatives" : [
"input-stream-index",
"bytes",
"url"
],
"requires" : [
"path",
"hash",
"empty"
],
"stability" : "default"
},
"empty" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Indicates that the deployment to be added is empty - so without any content.",
"expressions-allowed" : false,
"required" : true,
"nillable" : true,
"default" : false,
"alternatives" : [
"hash",
"input-stream-index",
"bytes",
"url",
"path",
"relative-to"
],
"stability" : "default"
}
}
},
"enabled" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts.)",
"expressions-allowed" : false,
"required" : false,
"nillable" : true,
"default" : false,
"stability" : "default"
}
},
"reply-properties" : {},
"stability" : "default",
"read-only" : false,
"runtime-only" : false
}