We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i,please help me,I'm new to openstack and face a question and i don't know how to solve it.
program as below
public class Openstack4J { public static void main(String agrs[]){ String domainIdentifier = "821bc14bee664077897ab4f54f029106"; OSClientV3 os = OSFactory.builderV3() .endpoint("http://192.168.252.1:5000/v3") .credentials("admin", "secret", Identifier.byName("admin")) .scopeToProject(Identifier.byId(domainIdentifier)) .authenticate(); List<? extends SwiftContainer> containers = os.objectStorage().containers().list(); for (SwiftContainer currentContainer : containers) { System.out.println(currentContainer.getName()); } } }
and i use Identity Service (Keystone) V3 ,
The text was updated successfully, but these errors were encountered:
.scopeToProject(Identifier.byId(domainIdentifier))
Simple typo: Scope to project by domain identifier? You either want to use the projectId or scope to a domain.
Sorry, something went wrong.
if i use the projectid ,what should i do? thank you @auhlig
Take a look at the examples in the 'Authenticating' section https://github.com/ContainX/openstack4j/blob/master/README.md#using-identity-v3-authentication
@jianke221: Please close if this issue is no longer valid. Thank.
What is domainIdentifier where can i find it?
No branches or pull requests
i,please help me,I'm new to openstack and face a question and i don't know how to solve it.
program as below
public class Openstack4J {
public static void main(String agrs[]){
String domainIdentifier = "821bc14bee664077897ab4f54f029106";
OSClientV3 os = OSFactory.builderV3()
.endpoint("http://192.168.252.1:5000/v3")
.credentials("admin", "secret", Identifier.byName("admin"))
.scopeToProject(Identifier.byId(domainIdentifier))
.authenticate();
List<? extends SwiftContainer> containers = os.objectStorage().containers().list();
for (SwiftContainer currentContainer : containers) {
System.out.println(currentContainer.getName());
}
}
}
and i use Identity Service (Keystone) V3 ,
The text was updated successfully, but these errors were encountered: