Job definition - OSLC Provisioning
An OSLC Provisioning job invokes any OSLC provider, such as HCL Workload Automation and IBM SmartCloud Orchestrator, that is implementing the OSLC Provisioning Specification. Provisioning resources define provisioning plans, provisioning requests and provisioning results of the software development, test and deployment lifecycle.
This section describes
the required and optional attributes for OSLC Provisioning
jobs. Each job definition has the following format and arguments:
Attribute | Description/value | Required |
---|---|---|
Registry Services URI | The address of the Registry Services (for example, https://myhost.mydomain:16311/odlc/pr). | ✓ |
Registry Services User name | The user connecting to the Registry Services. | ✓ |
Registry Services Password | The password associated with the user connecting to the Registry Services. | ✓ |
Service Provider URI | The address of the Service Provider. | ✓ |
Service Provider User name | The user connecting to the Service Provider. | ✓ |
Service Provider Password | The password associated with the user connecting to the Service Provider. | ✓ |
Instance | The RDF representation of the instance to be deployed. | ✓ |
The following example shows a job
that schedules the provisioning of a system pattern:
WKS#PROVSAMPLETASK
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl"
xmlns:jsdloslcprovisioning="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdloslcprovisioning"
name="OSLCPROVISIONING">
<jsdl:application name="oslcprovisioning">
<jsdloslcprovisioning:oslcprovisioning>
<jsdloslcprovisioning:OSLCProvisioningParameters>
<jsdloslcprovisioning:actionPanel>
<jsdloslcprovisioning:instanceFromTemplate>
<jsdloslcprovisioning:instance>
<!-- RDF definition of the instance>
<?ml version="1.0" encoding="UTF-8"?>
<rf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:sco="http://jazz.net/ns/ism/provisioning/sco#"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
<rf:Description rdf:about="
http://myServiceProvider.domain:31115/CLIModelWeb/OSLC/BatchApplicationInstance/BatchApplication/
0f01af24-72e0-3c4b-b95c-18f908c76898">
<olc_auto:parameterDefinition rdf:nodeID="A1"/>
<olc_auto:parameterDefinition rdf:nodeID="A2"/>
<rf:type rdf:resource="http://jazz.net/ns/ism/provisioning/sco#Entity"/>
<olc_auto:parameterDefinition rdf:nodeID="A4"/>
<dcterms:identifier>0f01af24-72e0-3c4b-b95c-18f908c76898</dcterms:identifier>
<oslc_auto:parameterDefinition rdf:nodeID="A5"/>
<dcterms:title>InstanceName</dcterms:title>
<oslc_auto:parameterDefinition rdf:nodeID="A0"/>
</rdf:Description>
<rdf:Description rdf:nodeID="A5">
<oslc:name>XML</oslc:name>
<oslc:value><?xml version="1.0" encoding="UTF-8"?>
<model:TWSBatchApplicationInstance xmlns:model="
http://www.ibm.com/xmlns/prod/scheduling/1.0/Model">
<model:Name>InstanceName</model:Name>
<!--Here starts the definition of jobs, job streams, etc contained in this instance>
...
<!--Here starts the definition >
</model:TWSBatchApplicationInstance></slc:value>
<olc:defaultValue></slc:defaultValue>
<rdf:type rdf:resource="http://open-services.net/ns/core#Property"/>
</rdf:Description>
<!--Mapping of the instance>
<rdf:Description rdf:nodeID="A0">
<oslc:name>JOB_SAMPLE</oslc:name>
<oslc:value>JOB_TARGET</oslc:value>
<oslc:defaultValue>JOB_TARGET</oslc:defaultValue>
<rdf:type rdf:resource="http://open-services.net/ns/core#Property"/>
</rdf:Description>
<!--Here continues the definition of jobs, job streams, etc contained in this instance>
...
<!--Here ends the mapping>
<rdf:Description rdf:nodeID="A7">
<sco:node rdf:resource="
http://thinklinux:31115/CLIModelWeb/OSLC/BatchApplicationInstance/BatchApplication/
0f01af24-72e0-3c4b-b95c-18f908c76898"/>
<rdf:type rdf:resource="http://jazz.net/ns/ism/provisioning/sco#Template"/>
</rdf:Description>
<rdf:Description rdf:nodeID="A1">
<oslc:name>ICON</oslc:name>
<oslc:value>../js/images/default.png</oslc:value>
<oslc:defaultValue>../js/images/default.png</oslc:defaultValue>
<rdf:type rdf:resource="http://open-services.net/ns/core#Property"/>
</rdf:Description> </rdf:RDF></jsdloslcprovisioning:instance>
</jsdloslcprovisioning:instanceFromTemplate>
</jsdloslcprovisioning:actionPanel>
<jsdloslcprovisioning:connectionInfo>
<jsdloslcprovisioning:serviceProviderCatalog>
<jsdloslcprovisioning:catalogURI>
https://myregistry.domain:16311/oslc/pr</jsdloslcprovisioning:catalogURI>
<jsdloslcprovisioning:username>registryServicesUser</jsdloslcprovisioning:username>
<jsdloslcprovisioning:password>registryServicesPassword</jsdloslcprovisioning:password>
</jsdloslcprovisioning:serviceProviderCatalog>
<jsdloslcprovisioning:serviceProvider>
<jsdloslcprovisioning:serviceProviderURI>
https://myregistry.domain:16311/oslc/providers/1380617052297
</jsdloslcprovisioning:serviceProviderURI>
<jsdloslcprovisioning:usernameSP>myServiceProviderUser</jsdloslcprovisioning:usernameSP>
<jsdloslcprovisioning:passwordSP>myServiceProviderPassword</jsdloslcprovisioning:passwordSP>
</jsdloslcprovisioning:serviceProvider>
</jsdloslcprovisioning:connectionInfo>
</jsdloslcprovisioning:OSLCProvisioningParameters>
</jsdloslcprovisioning:oslcprovisioning>
</jsdl:application>
</jsdl:jobDefinition>
See also
From the Dynamic Workload Console you can perform the same task as described in
For more information about how to create and edit scheduling objects, see