anchor.diff:  
   + Response 409
   
  -        Returned when agreements are still associated to the template.+        Returned when agreements are still associated to the template.
  +        
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +## Agreement Collection [/agreements]
  +
  +### List all agreements [GET]
  +
  +This operation allows to get all the registered agreements in the SLA Manager Core.
  +
  ++ Request (application/xml)
  +
  +    + Headers
  +    
  +            user: basic authentication user
  +            password: basic authentication password
  +
  ++ Response 200 (application/xml)
  +
  +    + Body
  +
  +            <?xml version="1.0" encoding="UTF-8"?>
  +            <agreements>
  +                <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" xmlns:sla="http://sla.atos.eu" wsag:AgreementId="87726a36-e570-4482-b3cc-1cb3d8998bb8">
  +                    <wsag:Name>Agreement1</wsag:Name>
  +                    <wsag:Context>
  +                        <wsag:AgreementInitiator>user1@serviceuser.com</wsag:AgreementInitiator>
  +                        <wsag:AgreementResponder>provider1</wsag:AgreementResponder>
  +                        <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
  +                        <wsag:ExpirationTime>0024-03-07T11:08:24CET</wsag:ExpirationTime>
  +                        <wsag:TemplateId>e7efbfc1-3039-44c1-82d5-3d0e04cf2368</wsag:TemplateId>
  +                        <sla:Service>Service1</sla:Service>
  +                    </wsag:Context>
  +                    <wsag:Terms>
  +                        <wsag:All>
  +                            <wsag:ServiceDescriptionTerm />
  +                            <wsag:ServiceProperties wsag:Name="ServiceProperties" wsag:ServiceName="Service1">
  +                                <wsag:VariableSet>
  +                                    <wsag:Variable wsag:Name="percCPULoad" />
  +                                    <wsag:Variable wsag:Name="percDiskUsed" />
  +                                    <wsag:Variable wsag:Name="percRAMUsed" />
  +                                </wsag:VariableSet>
  +                            </wsag:ServiceProperties>
  +                            <wsag:GuaranteeTerm wsag:Name="percCPULoad">
  +                                <wsag:ServiceScope wsag:ServiceName="Service1">Service1</wsag:ServiceScope>
  +                                <wsag:ServiceLevelObjective>
  +                                    <wsag:KPITarget>
  +                                        <wsag:KPIName>percCPULoad</wsag:KPIName>
  +                                        <wsag:CustomServiceLevel>{"constraint": "percCPULoad LT 90"}</wsag:CustomServiceLevel>
  +                                    </wsag:KPITarget>
  +                                </wsag:ServiceLevelObjective>
  +                            </wsag:GuaranteeTerm>
  +                            <wsag:GuaranteeTerm wsag:Name="percDiskUsed">
  +                                <wsag:ServiceScope wsag:ServiceName="Service1">Service1</wsag:ServiceScope>
  +                                <wsag:ServiceLevelObjective>
  +                                    <wsag:KPITarget>
  +                                        <wsag:KPIName>percDiskUsed</wsag:KPIName>
  +                                        <wsag:CustomServiceLevel>{"constraint": "percDiskUsed LT 80"}</wsag:CustomServiceLevel>
  +                                    </wsag:KPITarget>
  +                                </wsag:ServiceLevelObjective>
  +                            </wsag:GuaranteeTerm>
  +                            <wsag:GuaranteeTerm wsag:Name="percRAMUsed">
  +                                <wsag:ServiceScope wsag:ServiceName="Service1">Service1</wsag:ServiceScope>
  +                                <wsag:ServiceLevelObjective>
  +                                    <wsag:KPITarget>
  +                                        <wsag:KPIName>percRAMUsed</wsag:KPIName>
  +                                        <wsag:CustomServiceLevel>{"constraint": "percRAMUsed LT 80"}</wsag:CustomServiceLevel>
  +                                    </wsag:KPITarget>
  +                                </wsag:ServiceLevelObjective>
  +                            </wsag:GuaranteeTerm>
  +                        </wsag:All>
  +                    </wsag:Terms>
  +                </wsag:Agreement>
  +                <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" xmlns:sla="http://sla.atos.eu" wsag:AgreementId="51a3ec44-f755-4ee8-824b-0ce1001e990a">
  +                    <wsag:Name>WirecloudAgreement70_80_60</wsag:Name>
  +                    <wsag:Context>
  +                        <wsag:AgreementInitiator>user2@serviceuser.com</wsag:AgreementInitiator>
  +                        <wsag:AgreementResponder>provider2</wsag:AgreementResponder>
  +                        <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
  +                        <wsag:ExpirationTime>0024-03-07T11:08:24CET</wsag:ExpirationTime>
  +                        <wsag:TemplateId>e7efbfc1-3039-44c1-82d5-3d0e04cf2368</wsag:TemplateId>
  +                        <sla:Service>Service2</sla:Service>
  +                    </wsag:Context>
  +                    <wsag:Terms>
  +                        <wsag:All>
  +                            <wsag:ServiceDescriptionTerm />
  +                            <wsag:ServiceProperties wsag:Name="ServiceProperties" wsag:ServiceName="Service2">
  +                                <wsag:VariableSet>
  +                                    <wsag:Variable wsag:Name="percCPULoad" />
  +                                    <wsag:Variable wsag:Name="percDiskUsed" />
  +                                    <wsag:Variable wsag:Name="percRAMUsed" />
  +                                </wsag:VariableSet>
  +                            </wsag:ServiceProperties>
  +                            <wsag:GuaranteeTerm wsag:Name="percCPULoad">
  +                                <wsag:ServiceScope wsag:ServiceName="Service2">Service2</wsag:ServiceScope>
  +                                <wsag:ServiceLevelObjective>
  +                                    <wsag:KPITarget>
  +                                        <wsag:KPIName>percCPULoad</wsag:KPIName>
  +                                        <wsag:CustomServiceLevel>{"constraint": "percCPULoad LT 70"}</wsag:CustomServiceLevel>
  +                                    </wsag:KPITarget>
  +                                </wsag:ServiceLevelObjective>
  +                            </wsag:GuaranteeTerm>
  +                            <wsag:GuaranteeTerm wsag:Name="percDiskUsed">
  +                                <wsag:ServiceScope wsag:ServiceName="Service2">Service2</wsag:ServiceScope>
  +                                <wsag:ServiceLevelObjective>
  +                                    <wsag:KPITarget>
  +                                        <wsag:KPIName>percDiskUsed</wsag:KPIName>
  +                                        <wsag:CustomServiceLevel>{"constraint": "percDiskUsed LT 80"}</wsag:CustomServiceLevel>
  +                                    </wsag:KPITarget>
  +                                </wsag:ServiceLevelObjective>
  +                            </wsag:GuaranteeTerm>
  +                            <wsag:GuaranteeTerm wsag:Name="percRAMUsed">
  +                                <wsag:ServiceScope wsag:ServiceName="Service2">Service2</wsag:ServiceScope>
  +                                <wsag:ServiceLevelObjective>
  +                                    <wsag:KPITarget>
  +                                        <wsag:KPIName>percRAMUsed</wsag:KPIName>
  +                                        <wsag:CustomServiceLevel>{"constraint": "percRAMUsed LT 60"}</wsag:CustomServiceLevel>
  +                                    </wsag:KPITarget>
  +                                </wsag:ServiceLevelObjective>
  +                            </wsag:GuaranteeTerm>
  +                        </wsag:All>
  +                    </wsag:Terms>
  +                </wsag:Agreement>
  +            </agreements>
  +
  +### Create a new agreement [POST]
  +
  +Allows to create a new agreement. It takes a XML body the description of the
  +agreement, following the [WS-Agreement schema](http://schemas.ggf.org/graap/2007/03/ws-agreement).
  +It might include a AgreementId or not. In case of not beeing included, a uuid will be assigned.
  +
  ++ AemplateId (string) - The id of the agreement (optional)
  ++ Name (string) - A human readable name for the agreement.
  ++ Context (object)
  +    + AgreementInitiator (string) - The name of the agreement initiator (in our case, an existing provider)
  +    + AgreementResponder (string) - The name of the responder (optional)
  +    + ServiceProvider (string) - The name of the service provider (an existing provider)
  +    + Service (string) - The service ID the agreement will monitor.
  +    + TemplateId (string) - The template id the new agreement is based on.
  +    + ExpirationTime (string) - The expiration date of the template (YYYY-MM-DDThh:mm:ss+hhmm format)
  ++ Terms (list) - A list of terms.
  +    + All (object)
  +        + ServiceDescriptionTerm (object)
  +            + Name (string) - The name of the service description term
  +            + ServiceName (string) - The service ID the services are based on.
  +            + Value (string) - Human readable description of the service description term.
  +        + ServiceProperties (list) - A list of variable sets.
  +            + Name (string) - Name of the properties.
  +            + ServiceName (string) - Name of the service where the properties apply.
  +            + VariableSet (list) - A list of variables.
  +                + Variable (object)
  +                    + Name (string) - The name of the variable.
  +        + GuaranteeTerm (list) - A list of ServiceScope and ServiceLevelObjective.
  +            + Name (string) - Descriptive name of the Guarantee Term.
  +            + ServiceScope (object)
  +                + ServiceName (string) - name of the service.
  +                + Value (string) - Id of the scope of the service.
  +            + ServiceLevelObjetive (object)
  +                + KPITarget (object)
  +                    + KPIName (string) - Name of the KPI to be monitored.
  +                    + CustomServiceLevel (string) - Custom values to be fulfilled by the monitored KPI.
  +
  ++ Request (application/xml)
  +
  +    + headers
  +    
  +            user: basic authentication user
  +            password: basic authentication password
  +
  +    + body
  +            
  +            <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" xmlns:sla="http://sla.atos.eu">
  +                <wsag:Name>Agreement3</wsag:Name>
  +                <wsag:Context>
  +                    <wsag:AgreementInitiator>user3@serviceuser.com</wsag:AgreementInitiator>
  +                    <wsag:AgreementResponder>provider3</wsag:AgreementResponder>
  +                    <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
  +                    <wsag:ExpirationTime>0024-03-07T11:08:24CET</wsag:ExpirationTime>
  +                    <wsag:TemplateId>e7efbfc1-3039-44c1-82d5-3d0e04cf2368</wsag:TemplateId>
  +                    <sla:Service>Service3</sla:Service>
  +                </wsag:Context>
  +                <wsag:Terms>
  +                    <wsag:All>
  +                        <wsag:ServiceDescriptionTerm />
  +                        <wsag:ServiceProperties wsag:Name="ServiceProperties" wsag:ServiceName="Service3">
  +                            <wsag:VariableSet>
  +                                <wsag:Variable wsag:Name="percCPULoad" />
  +                                <wsag:Variable wsag:Name="percDiskUsed" />
  +                                <wsag:Variable wsag:Name="percRAMUsed" />
  +                            </wsag:VariableSet>
  +                        </wsag:ServiceProperties>
  +                        <wsag:GuaranteeTerm wsag:Name="percCPULoad">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percCPULoad</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percCPULoad LT 90"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                        <wsag:GuaranteeTerm wsag:Name="percDiskUsed">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percDiskUsed</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percDiskUsed LT 80"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                        <wsag:GuaranteeTerm wsag:Name="percRAMUsed">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percRAMUsed</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percRAMUsed LT 80"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                    </wsag:All>
  +                </wsag:Terms>
  +            </wsag:Agreement>
  +
  ++ Response 201 (application/xml)
  +
  +    + Body
  +
  +            <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" xmlns:sla="http://sla.atos.eu" wsag:AgreementId="87726a36-e570-4482-b3cc-1cb3d8998bb8">
  +                <wsag:Name>Agreement3</wsag:Name>
  +                <wsag:Context>
  +                    <wsag:AgreementInitiator>user3@serviceuser.com</wsag:AgreementInitiator>
  +                    <wsag:AgreementResponder>provider3</wsag:AgreementResponder>
  +                    <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
  +                    <wsag:ExpirationTime>0024-03-07T11:08:24CET</wsag:ExpirationTime>
  +                    <wsag:TemplateId>e7efbfc1-3039-44c1-82d5-3d0e04cf2368</wsag:TemplateId>
  +                    <sla:Service>Service3</sla:Service>
  +                </wsag:Context>
  +                <wsag:Terms>
  +                    <wsag:All>
  +                        <wsag:ServiceDescriptionTerm />
  +                        <wsag:ServiceProperties wsag:Name="ServiceProperties" wsag:ServiceName="Service3">
  +                            <wsag:VariableSet>
  +                                <wsag:Variable wsag:Name="percCPULoad" />
  +                                <wsag:Variable wsag:Name="percDiskUsed" />
  +                                <wsag:Variable wsag:Name="percRAMUsed" />
  +                            </wsag:VariableSet>
  +                        </wsag:ServiceProperties>
  +                        <wsag:GuaranteeTerm wsag:Name="percCPULoad">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percCPULoad</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percCPULoad LT 90"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                        <wsag:GuaranteeTerm wsag:Name="percDiskUsed">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percDiskUsed</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percDiskUsed LT 80"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                        <wsag:GuaranteeTerm wsag:Name="percRAMUsed">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percRAMUsed</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percRAMUsed LT 80"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                    </wsag:All>
  +                </wsag:Terms>
  +            </wsag:Agreement>
  +
  ++ Response 409
  +
  +        Returned when the uuid or name already exists in the database.
  +        Returned when the provider uuid specified in the agreement doesn't exist in the database.
  +        Returned when the template uuid specified in the agreement doesn't exist in the database.
  +        
  ++ Response 500
  +
  +        Returned when incorrect data has been suplied.
  +        
  +## Agreement [/agreements/{AgreementId}]
  +
  +### Get agreement info [GET]
  +
  ++ Parameters
  +
  +    + AgreementId (string) - Id of the agreement
  +
  ++ Request (application/xml)
  +
  +    + Headers
  +    
  +            user: basic authentication user
  +            password: basic authentication password
  +
  ++ Response 200 (application/xml)
  +
  +    + Body
  +
  +            <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement" xmlns:sla="http://sla.atos.eu" wsag:AgreementId="87726a36-e570-4482-b3cc-1cb3d8998bb8">
  +                <wsag:Name>Agreement3</wsag:Name>
  +                <wsag:Context>
  +                    <wsag:AgreementInitiator>user3@serviceuser.com</wsag:AgreementInitiator>
  +                    <wsag:AgreementResponder>provider3</wsag:AgreementResponder>
  +                    <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
  +                    <wsag:ExpirationTime>0024-03-07T11:08:24CET</wsag:ExpirationTime>
  +                    <wsag:TemplateId>e7efbfc1-3039-44c1-82d5-3d0e04cf2368</wsag:TemplateId>
  +                    <sla:Service>Service3</sla:Service>
  +                </wsag:Context>
  +                <wsag:Terms>
  +                    <wsag:All>
  +                        <wsag:ServiceDescriptionTerm />
  +                        <wsag:ServiceProperties wsag:Name="ServiceProperties" wsag:ServiceName="Service3">
  +                            <wsag:VariableSet>
  +                                <wsag:Variable wsag:Name="percCPULoad" />
  +                                <wsag:Variable wsag:Name="percDiskUsed" />
  +                                <wsag:Variable wsag:Name="percRAMUsed" />
  +                            </wsag:VariableSet>
  +                        </wsag:ServiceProperties>
  +                        <wsag:GuaranteeTerm wsag:Name="percCPULoad">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percCPULoad</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percCPULoad LT 90"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                        <wsag:GuaranteeTerm wsag:Name="percDiskUsed">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percDiskUsed</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percDiskUsed LT 80"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                        <wsag:GuaranteeTerm wsag:Name="percRAMUsed">
  +                            <wsag:ServiceScope wsag:ServiceName="Service3">Service3</wsag:ServiceScope>
  +                            <wsag:ServiceLevelObjective>
  +                                <wsag:KPITarget>
  +                                    <wsag:KPIName>percRAMUsed</wsag:KPIName>
  +                                    <wsag:CustomServiceLevel>{"constraint": "percRAMUsed LT 80"}</wsag:CustomServiceLevel>
  +                                </wsag:KPITarget>
  +                            </wsag:ServiceLevelObjective>
  +                        </wsag:GuaranteeTerm>
  +                    </wsag:All>
  +                </wsag:Terms>
  +            </wsag:Agreement>
  +
  ++ Response 404
  +
  +        Returned when the object is not in the database.
  +
  +### Delete agreement [DELETE]
  +
  ++ Response 204
  ++ Response 404
  +
  +        Returned when the given uuid doesn't exist in the database.
  +
  ++ Response 409
  +
  +        Returned when agreements are still associated to the template.
  
positive.code: 
          Returned when incorrect data has been suplied.
          
  ## Template [/providers/{TemplateId}]
  
  ### Get template info [GET]
  
  
negative.code:                 </provider>
              </providers>
  
  ### Create a new provider [POST]
  
  Allows to create a new provider. It takes a XML body containing
  the name of the provider.
  