Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform action on behalf of sub accounts #204

Open
khomco opened this issue May 23, 2016 · 1 comment
Open

Perform action on behalf of sub accounts #204

khomco opened this issue May 23, 2016 · 1 comment

Comments

@khomco
Copy link

khomco commented May 23, 2016

With the CLC platform being structured with account hierarchy, it would be ideal to perform actions through the API for sub accounts. This is in fact how many of the internal teams are using the API to support our customers and therefore not realistic to leverage a modifying Credentials Provider between calls on different sub accounts.

Below is an example of how I might like to interact with the library:

OperationFuture<ServerMetadata> operationFuture = clcSdk
                .serverService()
                .account("AccountAlias")
                .create(new CreateServerConfig()
                                .name(serverName)
                                .description(templateName)
                                .type(ServerType.STANDARD)
                                .group(getGroup())
                                .password(password)
                                .machine(new Machine()
                                                .cpuCount(2)
                                                .ram(4)
                                )
                                .template(Template.refByName().name(templateName).dataCenter(DataCenter.refById(dataCenter))
                                )
                                .timeToLive(ZonedDateTime.now().plusDays(1))
                )
                .waitUntilComplete();
@tonycapone
Copy link

Yeah something like this is a must-have feature actually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants