概念
看这篇。
特别是Highlight部分:
- 访问服务如ADW,对象存储等无需走外网。
- region级别的服务,因此只限于region内的服务。
- 替换了之前所需的internet gateway或NAT gateway。不过下载补丁还是需要NAT gateway。
- 感觉大部分是通过API/SDK集成,在OCI console中暂未见集成。
支持列表
看这篇。
实战
推荐Connect Private Instances with Oracle Services Through an Oracle Cloud Infrastructure Service Gateway和Access Oracle Services Privately with a Service Gateway](https://blogs.oracle.com/cloud-infrastructure/access-oracle-services-privately-with-a-service-gateway),都是同一人写的。
都试过,没问题。
OCI CLI
看这里。
命令行选项包括:
Commands:
attach Adds the specified [Service] to the list of...
change-compartment Moves a service gateway into a different...
create Creates a new service gateway in the...
delete Deletes the specified service gateway.
detach Removes the specified [Service] from the list...
get Gets the specified service gateway's...
list Lists the service gateways in the specified...
update Updates the specified service gateway.
查询:
$ oci network service-gateway list --compartment-id ocid1.compartment.oc1..aaaaaaaaztosn7el6ftcfoiwcnaqiampytesog3r6cdk6k2pfqst6z2tjfcq
{
"data": [
{
"block-traffic": false,
"compartment-id": "ocid1.compartment.oc1..aaaaaaaaztosn7el6ftcfoiwcnaqiampytesog3r6cdk6k2pfqst6z2tjfcq",
"defined-tags": {},
"display-name": "Service Gateway-VCN_quickstart",
"freeform-tags": {
"VCN": "VCN-2019-12-09T00:45:00"
},
"id": "ocid1.servicegateway.oc1.eu-frankfurt-1.aaaaaaaalqnxxclmntn5ck456gawamupnw45wdplp75fhty7vhga5ay5zqxa",
"lifecycle-state": "AVAILABLE",
"route-table-id": null,
"services": [
{
"service-id": "ocid1.service.oc1.eu-frankfurt-1.aaaaaaaa7ncsqkj6lkz36dehifizupyn6qjqsmtepsegs23yyntnsy7qrvea",
"service-name": "All FRA Services In Oracle Services Network"
}
],
"time-created": "2019-12-09T00:49:21.674000+00:00",
"vcn-id": "ocid1.vcn.oc1.eu-frankfurt-1.aaaaaaaaheka2ixf7ouhiihvhyfmoe6oscw2p66q5homfbljjpcioegvkkra"
}
]
}
attach和detach选项似乎在OCI Console中是没有的。
来源:CSDN
作者:dingdingfish
链接:https://blog.csdn.net/stevensxiao/article/details/103454896