You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Rita Zhang <no...@github.com> on 2016/04/04 02:26:57 UTC
Re: [jclouds/jclouds-labs] JCLOUDS-664 Azurecompute-arm
ResourceGroupApi (#250)
> + @Fallback(NullOnNotFoundOr404.class)
> + @Nullable
> + ResourceGroup get(@PathParam("name") String name);
> +
> + @Named("resourcegroup:update")
> + @PATCH
> + @Produces(MediaType.APPLICATION_JSON)
> + @Path("resourcegroups/{name}")
> + @Fallback(NullOnNotFoundOr404.class)
> + @Nullable
> + @MapBinder(BindToJsonPayload.class)
> + ResourceGroup update(@PathParam("name") String name, @PayloadParam("tags")Map<String, String> tags);
> +
> + @Named("resourcegroup:delete")
> + @DELETE
> + @ResponseParser(StatusCodeParser.class)
@nacx Please take a look at this [page](https://msdn.microsoft.com/en-us/library/azure/dn790539.aspx). "This is an asynchronous operation that returns a status of 202 until all resources and the resource group are successfully deleted. ...... When the process finishes and is successful, the URI in the Location header returns a status of 200. If the asynchronous request failed, the URI in the Location header returns an error level status code. " Note this is also the case for other ARM APIs. We need to preserve returned status code to understand what's going on. Here is another [example](https://msdn.microsoft.com/en-us/library/azure/mt163671.aspx).
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/250/files/f7cc1b437f11378e105bba552e3cfee9d7491872#r58320652