Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Method: POST 
URL: https://policyhost:port/policy/api/v1/policytypes

Body: 
{
    "tosca_definitions_version":"tosca_simple_yaml_1_1_0",
    "policy_types":{
        "onap.policies.monitoring.docker.slicems.app":{
            "version":"1.0.0",
            "description":"Runtime Configuration of Slice MS",
            "derived_from":"onap.policies.Monitoring:1.0.0",
            "properties":{
                "cllId":{
                    "type":"string",
                    "required":true,
                    "description":"cll id"
                },
                "closedLoopStatus":{
                    "type":"string",
                    "required":true,
                    "description":"whether provide closed loop assurance for one cll"
                },
                "originalBw":{
                    "type":"string",
                    "required":true,
                    "description":"original bw of one cll"
                }
            }
        }
    }
}


`

1.1.2 Create Configuration Policy

Code Block
Method: POST
URL: https://policyhost:port/policy/api/v1/policytypes/onap.policies.monitoring.docker.slicems.app/versions/1.0.0/policies
Body:
{
    "tosca_definitions_version":"tosca_simple_yaml_1_1_0",
    "topology_template":{
        "policies":[
            {
                "onap.dcae.slicems.config":{
                    "type":"onap.policies.monitoring.docker.slicems.app",
                    "type_version":"1.0.0",
                    "version":"1.0.0",
                    "metadata":{
                        "policy-id":"onap.dcae.slicems.config",
                        "policy-version":1
                    },
                    "properties":{
                        "cllId":"cll-01",
                        "closedLoopStatus":"on",
                        "originalBw":"1000"
                    }
                }
            }
        ]
    }
}


2. Remove the sporadic high-flow transfer support intent

...