aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json
blob: caae68eef60f47ab8b528bf3d1b8653dd364ba92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
  "description": "This is Resource configuration snapshots Execution Component.",
  "version": "1.0.0",
  "attributes": {
    "config-snapshot-status": {
      "required": true,
      "type": "string"
    },
    "config-snapshot-message": {
      "required": true,
      "type": "string"
    },
    "config-snapshot-value": {
      "required": false,
      "type": "string"
    },
    "response-data": {
      "required": false,
      "type": "json"
    }
  },
  "capabilities": {
    "component-node": {
      "type": "tosca.capabilities.Node"
    }
  },
  "interfaces": {
    "ComponentConfigSnapshotsExecutor": {
      "operations": {
        "process": {
          "inputs": {
            "operation": {
              "description": "Operation to perform: fetch, store, diff. (required)",
              "required": true,
              "type": "string",
              "constraints": [
                {
                  "valid_values": [
                    "fetch",
                    "store",
                    "diff"
                  ]
                }
              ]
            },
            "resource-id": {
              "description": "Identifier for the resource config to operate on. (required)",
              "required": true,
              "type": "string"
            },
            "resource-type": {
              "description": "Type of the resource config to operate on, e.g. PNF, VNF, etc. (required)",
              "required": true,
              "type": "string"
            },
            "resource-status" : {
              "description": "Status of the resource to fetch or store, either RUNNING or CANDIDATE. (optional)",
              "required" : false,
              "type" : "string",
              "default": "RUNNING",
              "constraints": [
                {
                  "valid_values": [
                    "RUNNING",
                    "CANDIDATE"
                  ]
                }
              ]
            },
            "resource-snapshot": {
              "description": "The resource config snapshot to store for the resource identified by id/type/status. (store operation only)",
              "required": false,
              "type": "string"
            },
            "diff-content-type": {
              "description": "Specify the type of content expected, to perform comparison on. (diff operation only)",
              "required": false,
              "type": "string",
              "constraints": [
                {
                  "valid_values": [
                    "xml",
                    "json"
                  ]
                }
              ]
            }
          }
        }
      }
    }
  },
  "derived_from": "tosca.nodes.Component"
}