You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Lahiru Sandaruwan <la...@wso2.com> on 2014/04/01 18:23:24 UTC

Re: Does jclouds support key-value pairs for tags?

Hi,

Thanks.
That worked.


On Thu, Mar 27, 2014 at 10:50 AM, Lahiru Sandaruwan <la...@wso2.com>wrote:

> Thanks Ignasi,
>
> Will try that out.
>
>
> On Thu, Mar 27, 2014 at 12:55 AM, Ignasi Barrera <ignasi.barrera@gmail.com
> > wrote:
>
>> AFAICT the TemplateOptions in the ComputeService only allows tags being a
>> list of strings. The userMetadata() accepts a Map, though. Can you use it
>> instead of the tags?
>> El 26/03/2014 18:54, "Lahiru Sandaruwan" <la...@wso2.com> escribió:
>>
>> > [Adding dev]
>> >
>> >
>> > On Tue, Mar 25, 2014 at 10:52 PM, Lahiru Sandaruwan <lahirus@wso2.com
>> > >wrote:
>> >
>> > > Hi,
>> > >
>> > > We(Apache Stratos) are using jclouds 1.7.1.
>> > >
>> > > There, we add tags as follows,
>> > >
>> > >
>> > >         // ability to define tags
>> > >         if (iaasInfo.getProperty(CloudControllerConstants.TAGS) !=
>> null)
>> > {
>> > >             template.getOptions()
>> > >                     .as(AWSEC2TemplateOptions.class)
>> > >
>> > >
>> .tags(Arrays.asList(iaasInfo.getProperty(CloudControllerConstants.TAGS)
>> > >
>> > > .split(CloudControllerConstants.ENTRY_SEPARATOR)));
>> > >
>> > >         }
>> > >
>> > > It is just a list of strings.
>> > > But i just want to know about $subject?
>> > >
>> > > Thanks.
>> > >
>> > > --
>> > > --
>> > > Lahiru Sandaruwan
>> > > Software Engineer,
>> > > Platform Technologies,
>> > > WSO2 Inc., http://wso2.com
>> > > lean.enterprise.middleware
>> > >
>> > > email: lahirus@wso2.com cell: (+94) 773 325 954
>> > > blog: http://lahiruwrites.blogspot.com/
>> > > twitter: http://twitter.com/lahirus
>> > > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>> > >
>> > >
>> >
>> >
>> > --
>> > --
>> > Lahiru Sandaruwan
>> > Software Engineer,
>> > Platform Technologies,
>> > WSO2 Inc., http://wso2.com
>> > lean.enterprise.middleware
>> >
>> > email: lahirus@wso2.com cell: (+94) 773 325 954
>> > blog: http://lahiruwrites.blogspot.com/
>> > twitter: http://twitter.com/lahirus
>> > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>> >
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Does jclouds support key-value pairs for tags?

Posted by Ignasi Barrera <na...@apache.org>.
Great! Thanks for sharing!
El 01/04/2014 18:24, "Lahiru Sandaruwan" <la...@wso2.com> escribió:

> Hi,
>
> Thanks.
> That worked.
>
>
> On Thu, Mar 27, 2014 at 10:50 AM, Lahiru Sandaruwan <lahirus@wso2.com
> >wrote:
>
> > Thanks Ignasi,
> >
> > Will try that out.
> >
> >
> > On Thu, Mar 27, 2014 at 12:55 AM, Ignasi Barrera <
> ignasi.barrera@gmail.com
> > > wrote:
> >
> >> AFAICT the TemplateOptions in the ComputeService only allows tags being
> a
> >> list of strings. The userMetadata() accepts a Map, though. Can you use
> it
> >> instead of the tags?
> >> El 26/03/2014 18:54, "Lahiru Sandaruwan" <la...@wso2.com> escribió:
> >>
> >> > [Adding dev]
> >> >
> >> >
> >> > On Tue, Mar 25, 2014 at 10:52 PM, Lahiru Sandaruwan <lahirus@wso2.com
> >> > >wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > We(Apache Stratos) are using jclouds 1.7.1.
> >> > >
> >> > > There, we add tags as follows,
> >> > >
> >> > >
> >> > >         // ability to define tags
> >> > >         if (iaasInfo.getProperty(CloudControllerConstants.TAGS) !=
> >> null)
> >> > {
> >> > >             template.getOptions()
> >> > >                     .as(AWSEC2TemplateOptions.class)
> >> > >
> >> > >
> >> .tags(Arrays.asList(iaasInfo.getProperty(CloudControllerConstants.TAGS)
> >> > >
> >> > > .split(CloudControllerConstants.ENTRY_SEPARATOR)));
> >> > >
> >> > >         }
> >> > >
> >> > > It is just a list of strings.
> >> > > But i just want to know about $subject?
> >> > >
> >> > > Thanks.
> >> > >
> >> > > --
> >> > > --
> >> > > Lahiru Sandaruwan
> >> > > Software Engineer,
> >> > > Platform Technologies,
> >> > > WSO2 Inc., http://wso2.com
> >> > > lean.enterprise.middleware
> >> > >
> >> > > email: lahirus@wso2.com cell: (+94) 773 325 954
> >> > > blog: http://lahiruwrites.blogspot.com/
> >> > > twitter: http://twitter.com/lahirus
> >> > > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > --
> >> > Lahiru Sandaruwan
> >> > Software Engineer,
> >> > Platform Technologies,
> >> > WSO2 Inc., http://wso2.com
> >> > lean.enterprise.middleware
> >> >
> >> > email: lahirus@wso2.com cell: (+94) 773 325 954
> >> > blog: http://lahiruwrites.blogspot.com/
> >> > twitter: http://twitter.com/lahirus
> >> > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
> >> >
> >>
> >
> >
> >
> > --
> > --
> > Lahiru Sandaruwan
> > Software Engineer,
> > Platform Technologies,
> > WSO2 Inc., http://wso2.com
> > lean.enterprise.middleware
> >
> > email: lahirus@wso2.com cell: (+94) 773 325 954
> > blog: http://lahiruwrites.blogspot.com/
> > twitter: http://twitter.com/lahirus
> > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
> >
> >
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>

Re: Does jclouds support key-value pairs for tags?

Posted by Ignasi Barrera <na...@apache.org>.
Great! Thanks for sharing!
El 01/04/2014 18:24, "Lahiru Sandaruwan" <la...@wso2.com> escribió:

> Hi,
>
> Thanks.
> That worked.
>
>
> On Thu, Mar 27, 2014 at 10:50 AM, Lahiru Sandaruwan <lahirus@wso2.com
> >wrote:
>
> > Thanks Ignasi,
> >
> > Will try that out.
> >
> >
> > On Thu, Mar 27, 2014 at 12:55 AM, Ignasi Barrera <
> ignasi.barrera@gmail.com
> > > wrote:
> >
> >> AFAICT the TemplateOptions in the ComputeService only allows tags being
> a
> >> list of strings. The userMetadata() accepts a Map, though. Can you use
> it
> >> instead of the tags?
> >> El 26/03/2014 18:54, "Lahiru Sandaruwan" <la...@wso2.com> escribió:
> >>
> >> > [Adding dev]
> >> >
> >> >
> >> > On Tue, Mar 25, 2014 at 10:52 PM, Lahiru Sandaruwan <lahirus@wso2.com
> >> > >wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > We(Apache Stratos) are using jclouds 1.7.1.
> >> > >
> >> > > There, we add tags as follows,
> >> > >
> >> > >
> >> > >         // ability to define tags
> >> > >         if (iaasInfo.getProperty(CloudControllerConstants.TAGS) !=
> >> null)
> >> > {
> >> > >             template.getOptions()
> >> > >                     .as(AWSEC2TemplateOptions.class)
> >> > >
> >> > >
> >> .tags(Arrays.asList(iaasInfo.getProperty(CloudControllerConstants.TAGS)
> >> > >
> >> > > .split(CloudControllerConstants.ENTRY_SEPARATOR)));
> >> > >
> >> > >         }
> >> > >
> >> > > It is just a list of strings.
> >> > > But i just want to know about $subject?
> >> > >
> >> > > Thanks.
> >> > >
> >> > > --
> >> > > --
> >> > > Lahiru Sandaruwan
> >> > > Software Engineer,
> >> > > Platform Technologies,
> >> > > WSO2 Inc., http://wso2.com
> >> > > lean.enterprise.middleware
> >> > >
> >> > > email: lahirus@wso2.com cell: (+94) 773 325 954
> >> > > blog: http://lahiruwrites.blogspot.com/
> >> > > twitter: http://twitter.com/lahirus
> >> > > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > --
> >> > Lahiru Sandaruwan
> >> > Software Engineer,
> >> > Platform Technologies,
> >> > WSO2 Inc., http://wso2.com
> >> > lean.enterprise.middleware
> >> >
> >> > email: lahirus@wso2.com cell: (+94) 773 325 954
> >> > blog: http://lahiruwrites.blogspot.com/
> >> > twitter: http://twitter.com/lahirus
> >> > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
> >> >
> >>
> >
> >
> >
> > --
> > --
> > Lahiru Sandaruwan
> > Software Engineer,
> > Platform Technologies,
> > WSO2 Inc., http://wso2.com
> > lean.enterprise.middleware
> >
> > email: lahirus@wso2.com cell: (+94) 773 325 954
> > blog: http://lahiruwrites.blogspot.com/
> > twitter: http://twitter.com/lahirus
> > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
> >
> >
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>