Action description in resources

Hello, I came to find that Action description inside a Resource / Link description get this format : ======================================================= "actions": [ { "title": "Disable networkinterface", "href": "/networkinterface/22fe83ae-a20f-54fc-b436-cec85c94c5e8?action=up", "category": "http: //schemas.ogf.org/occi/infrastructure/networkinterface/action# } ======================================================= And i don't understand what's the point of that ! Can someone help me clear this up ? One more question : what do you mean by "HTTP Links" ?

Where did you take the example from? Looking at the example in isolation there is obviously a mistake. Title should be "Enable.." rather than "Disable...". After that what's shown is an array (JSON) of actions. The action in this case allows for the to be enabled or "brought up" so that it is connected to a virtual network. Andy andy.edmonds.be On Thu, Jul 5, 2012 at 11:27 AM, Mon SPAM <skible.spam@gmail.com> wrote:
Hello, I came to find that Action description inside a Resource / Link description get this format : ==============================**========================= "actions": [ { "title": "Disable networkinterface", "href": "/networkinterface/22fe83ae-**a20f-54fc-b436-cec85c94c5e8?** action=up", "category": "http: //schemas.ogf.org/occi/**infrastructure/** networkinterface/action#<http://schemas.ogf.org/occi/infrastructure/networkinterface/action#> } ==============================**=========================
And i don't understand what's the point of that ! Can someone help me clear this up ?
One more question : what do you mean by "HTTP Links" ? ______________________________**_________________ occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/**listinfo/occi-wg<https://www.ogf.org/mailman/listinfo/occi-wg>

Hi First : THANKS FOR YOUR ANSWER Second: The example is found in the link description page 9 of the OCCI JSON rendering draft Thrid: What i exactly wanna know is why actions are in a resource description have an object form {title, href and category} while mixins or kinds are just strings ! Le 07/07/2012 14:35, Andy Edmonds a écrit : Where did you take the example from? Looking at the example in isolation there is obviously a mistake. Title should be "Enable.." rather than "Disable...". After that what's shown is an array (JSON) of actions. The action in this case allows for the to be enabled or "brought up" so that it is connected to a virtual network. Andy andy.edmonds.be On Thu, Jul 5, 2012 at 11:27 AM, Mon SPAM <skible.spam@gmail.com> wrote:
Hello, I came to find that Action description inside a Resource / Link description get this format : ======================================================= "actions": [ { "title": "Disable networkinterface", "href": "/networkinterface/22fe83ae-a20f-54fc-b436-cec85c94c5e8?action=up", "category": "http: // schemas.ogf.org/occi/infrastructure/networkinterface/action# } =======================================================
And i don't understand what's the point of that ! Can someone help me clear this up ?
One more question : what do you mean by "HTTP Links" ? _______________________________________________ occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/listinfo/occi-wg

Hi, Actions can be a bit tricky, we have to distinguish between the following two cases: 1. The set of Actions defined for a certain type (e.g. Compute). This information is static and presented by the Kind object describing the Compute type. 2. Actions currently applicable to a particular instance, e.g. a Compute object. This is a subset of (1) and varies over time. The "actions" JSON-object you see in the Resource/Link presentation refers to (2) applicable actions. From a pure OCCI Core perspective only the category identifier would indeed be necessar. However, for client convenience a link is provided which will executed the action if POST'ed to. Florian, what do you say about reducing the applicable actions list to just a JSON-list of category identifiers? The drawback would be that a client always must supply a JSON Action payload to invoke an action when POST'ing to the resource. regards, Ralf On Thu, 19 Jul 2012 20:43:21 +0200, skible spam <skible.spam@gmail.com> wrote:
Hi
First : THANKS FOR YOUR ANSWER Second: The example is found in the link description page 9 of the OCCI JSON rendering draft Thrid: What i exactly wanna know is why actions are in a resource description have an object form {title, href and category} while mixins or kinds are just strings !
Le 07/07/2012 14:35, Andy Edmonds a écrit :
Where did you take the example from? Looking at the example in isolation there is obviously a mistake. Title should be "Enable.." rather than "Disable...". After that what's shown is an array (JSON) of actions. The action in this case allows for the to be enabled or "brought up" so that it is connected to a virtual network.
Andy andy.edmonds.be
On Thu, Jul 5, 2012 at 11:27 AM, Mon SPAM <skible.spam@gmail.com> wrote:
Hello, I came to find that Action description inside a Resource / Link description get this format : ======================================================= "actions": [ { "title": "Disable networkinterface", "href": "/networkinterface/22fe83ae-a20f-54fc-b436-cec85c94c5e8?action=up", "category": "http: // schemas.ogf.org/occi/infrastructure/networkinterface/action# } =======================================================
And i don't understand what's the point of that ! Can someone help me clear this up ?
One more question : what do you mean by "HTTP Links" ? _______________________________________________ occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/listinfo/occi-wg

Hi, Am 19.07.2012 um 22:13 schrieb Ralf Nyren:
Hi,
Actions can be a bit tricky, we have to distinguish between the following two cases:
1. The set of Actions defined for a certain type (e.g. Compute). This information is static and presented by the Kind object describing the Compute type. 2. Actions currently applicable to a particular instance, e.g. a Compute object. This is a subset of (1) and varies over time.
The "actions" JSON-object you see in the Resource/Link presentation refers to (2) applicable actions.
From a pure OCCI Core perspective only the category identifier would indeed be necessar. However, for client convenience a link is provided which will executed the action if POST'ed to.
Florian, what do you say about reducing the applicable actions list to just a JSON-list of category identifiers? The drawback would be that a client always must supply a JSON Action payload to invoke an action when POST'ing to the resource.
We would definitely be supported by Jamie if we just listed the action category identifier as this is the compact way to specify the action. One thing we do have to specify then would be the way how links are invoked. This may indeed be a good solution as we already specify how actions should be invoked (e.g. by adding something like ?action=term to the URI of the resource) in OCCI Rendering 3.4.3. We would have to change the action part of resource and link from actions & array of objects & Applicable actions as defined in~\ref{tbl:format_action} & mutable & 0..* \\ to actions & array of strings & List of Category identifiers of actions applicable to the resource instance & mutable & 0..* \\ Any objections, comments? Cheers, Florian
regards, Ralf
On Thu, 19 Jul 2012 20:43:21 +0200, skible spam <skible.spam@gmail.com> wrote:
Hi
First : THANKS FOR YOUR ANSWER Second: The example is found in the link description page 9 of the OCCI JSON rendering draft Thrid: What i exactly wanna know is why actions are in a resource description have an object form {title, href and category} while mixins or kinds are just strings !
Le 07/07/2012 14:35, Andy Edmonds a écrit :
Where did you take the example from? Looking at the example in isolation there is obviously a mistake. Title should be "Enable.." rather than "Disable...". After that what's shown is an array (JSON) of actions. The action in this case allows for the to be enabled or "brought up" so that it is connected to a virtual network.
Andy andy.edmonds.be
On Thu, Jul 5, 2012 at 11:27 AM, Mon SPAM <skible.spam@gmail.com> wrote:
Hello, I came to find that Action description inside a Resource / Link description get this format : ======================================================= "actions": [ { "title": "Disable networkinterface", "href": "/networkinterface/22fe83ae-a20f-54fc-b436-cec85c94c5e8?action=up", "category": "http: // schemas.ogf.org/occi/infrastructure/networkinterface/action# } =======================================================
And i don't understand what's the point of that ! Can someone help me clear this up ?
One more question : what do you mean by "HTTP Links" ? _______________________________________________ occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/listinfo/occi-wg
occi-wg mailing list occi-wg@ogf.org https://www.ogf.org/mailman/listinfo/occi-wg
participants (6)
-
Andy Edmonds
-
Edmonds Andrew (edmo)
-
Feldhaus, Florian
-
Mon SPAM
-
Ralf Nyren
-
skible spam