Interface AccountApi


  • @Beta
    @Consumes("application/json")
    public interface AccountApi
    Provides access to the OpenStack Object Storage (Swift) Account API features.

    Account metadata prefixed with X-Account-Meta- will be converted appropriately using a binder/parser.

    This API is new to jclouds and hence is in Beta. That means we need people to use it and give us feedback. Based on that feedback, minor changes to the interfaces may happen. This code will replace org.jclouds.openstack.swift.SwiftClient in jclouds 2.0 and it is recommended you adopt it sooner than later.

    • Method Detail

      • updateMetadata

        @Named("account:updateMetadata")
        @POST
        void updateMetadata​(Map<String,​String> metadata)
        Creates or updates the Account metadata.
        Parameters:
        metadata - the metadata to create or update.
      • updateTemporaryUrlKey

        @Named("account:updateTemporaryUrlKey")
        @POST
        void updateTemporaryUrlKey​(@HeaderParam("X-Account-Meta-Temp-Url-Key")
                                   String temporaryUrlKey)
        Replaces the temporary URL key for the Account.
        Parameters:
        temporaryUrlKey - the temporary URL key to update.
      • deleteMetadata

        @Named("account:deleteMetadata")
        @POST
        boolean deleteMetadata​(Map<String,​String> metadata)
        Deletes metadata from the Account.
        Parameters:
        metadata - the metadata to delete.
        Returns:
        true if the metadata was successfully deleted, false if not.