huaweicloudsdk / sdk-java Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi, I get a issue when update route table for router,pls help.
Code:
OSClient.OSClientV3 client = authF.auth(region, projectID, userName, password, domain, proxy,debug);
client.networking().router().update(router.toBuilder().route("172.18.0.0/24", lanIPv4Addr).build());
version:
<dependency>
<groupId>com.huawei</groupId>
<artifactId>openstack4j</artifactId>
<version>3.0.5.1</version>
</dependency>
HTTP Request
1 > PUT https://vpc.cn-north-1.myhuaweicloud.com/v2.0/routers/b0f9efa7-f43f-43e1-88d1-cd2965356772
1 > Accept: application/json
1 > Content-Type: application/json
1 > User-Agent: OpenStack4j / OpenStack Client
{
"router" : {
"name" : "",
"external_gateway_info" : {
"network_id" : "0a2228f2-7f8a-45f1-8e09-9039e1d09975",
"enable_snat" : false
},
"admin_state_up" : true,
"routes" : [ {
"destination" : "172.18.0.0/24",
"nexthop" : "192.168.0.10"
} ]
}
}
Response:
1 < 403
1 < Accept-Ranges: bytes
1 < Connection: Keep-Alive
1 < Content-Length: 120
1 < Content-Type: application/json
1 < Date: Fri, 03 Aug 2018 08:35:04 GMT
1 < Server: Web Server
1 < Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
1 < via: proxy A
{"NeutronError":{"message":"Policy doesn't allow enable_snat to be performed","type":"PolicyNotAuthorized","detail":""}}
需要增加支持**移动:5_chinamobile
Hi, I cannot find this SDK in the Maven Central Repository? I think HUAWEI may create a new one ? If so, would you please help me to update my pom.xml ?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.