Log Service提供VPC專用內網網域名稱,用於VPC內訪問Log Service。
VPC專用內網網域名稱格式
網域名稱格式為 {regionId}-internal.log.aliyuncs.com ,只能從VPC內訪問,其他環境無法訪問。
與現有內網網域名稱的區別
支援獨立網段,Log Service為每個地區 VPC專用內網網域名稱VIP 劃分了固定位址區段,雲下機房裝置或異地ECS執行個體希望通過內網訪問Log Service時,可通過CEN、Express Connect、專線、VPN等串連Log Service所在地區內網網路,配置指向對應地區網段的路由,具體網段如下表所示:
國內
地區 | Region_id | 網域名稱 | ipv4固定網段 |
華東1(杭州) | cn-hangzhou | cn-hangzhou-internal.log.aliyuncs.com | 100.115.4.0/24 |
華東2(上海) | cn-shanghai | cn-shanghai-internal.log.aliyuncs.com | 100.115.12.0/24 |
華北1(青島) | cn-qingdao | cn-qingdao-internal.log.aliyuncs.com | 100.115.76.0/24 |
華北2(北京) | cn-beijing | cn-beijing-internal.log.aliyuncs.com | 100.115.44.0/24 |
華南1(深圳) | cn-shenzhen | cn-shenzhen-internal.log.aliyuncs.com | 100.115.10.0/24 |
華南2(河源) | cn-heyuan | cn-heyuan-internal.log.aliyuncs.com | 100.115.51.0/24 |
華南3(廣州) | cn-guangzhou | cn-guangzhou-internal.log.aliyuncs.com | 100.115.49.0/24 |
華北3(張家口) | cn-zhangjiakou | cn-zhangjiakou-internal.log.aliyuncs.com | 100.115.28.0/24 |
華北5(呼和浩特) | cn-huhehaote | cn-huhehaote-internal.log.aliyuncs.com | 100.115.69.0/24 |
華北6(烏蘭察布) | cn-wulanchabu | cn-wulanchabu-internal.log.aliyuncs.com | 100.118.12.0/24 |
西南1(成都) | cn-chengdu | cn-chengdu-internal.log.aliyuncs.com | 100.115.52.0/24 |
中國(香港) | cn-hongkong | cn-hongkong-internal.log.aliyuncs.com | 100.115.24.0/24 |
海外
地區 | Region_id | 網域名稱 | ipv4固定網段 |
日本(東京) | ap-northeast-1 | ap-northeast-1-internal.log.aliyuncs.com | 100.115.17.0/24 |
韓國(首爾) | ap-northeast-2 | ap-northeast-2-internal.log.aliyuncs.com | 100.115.18.0/24 |
新加坡 | ap-southeast-1 | ap-southeast-1-internal.log.aliyuncs.com | 100.115.40.0/24 |
馬來西亞(吉隆坡) | ap-southeast-3 | ap-southeast-3-internal.log.aliyuncs.com | 100.115.32.0/24 |
印尼(雅加達) | ap-southeast-5 | ap-southeast-5-internal.log.aliyuncs.com | 100.115.36.0/24 |
菲律賓(馬尼拉) | ap-southeast-6 | ap-southeast-6-internal.log.aliyuncs.com | 100.115.34.0/24 |
泰國(曼穀) | ap-southeast-7 | ap-southeast-7-internal.log.aliyuncs.com | 100.115.35.0/24 |
阿聯酋(杜拜) | me-east-1 | me-east-1-internal.log.aliyuncs.com | 100.115.57.0/24 |
德國(法蘭克福) | eu-central-1 | eu-central-1-internal.log.aliyuncs.com | 100.115.80.0/24 |
美國(維吉尼亞) | us-east-1 | us-east-1-internal.log.aliyuncs.com | 100.115.86.0/24 |
英國(倫敦) | eu-west-1 | eu-west-1-internal.log.aliyuncs.com | 100.115.84.0/24 |
沙特(利雅得) | me-central-1 | me-central-1-internal.log.aliyuncs.com | 100.115.56.0/24 |
美國(矽谷) | us-west-1 | us-west-1-internal.log.aliyuncs.com | 100.115.87.0/24 |
亞特蘭大 | us-southeast-1 | us-southeast-1-internal.log.aliyuncs.com | 100.115.125.128/25 |
如何使用
將endpoint替換為 VPC 專用網域名稱即可,此處以Java語言為例:
import com.aliyun.openservices.log.Client;
import com.aliyun.openservices.log.http.client.ClientConfiguration;
import com.aliyun.openservices.log.http.signer.SignVersion;
public class Sample {
public static void main(String[] args) throws Exception {
// 此處以北京為例,其它地區請根據實際情況填寫
String endpoint = "cn-beijing-internal.log.aliyuncs.com";
// 本樣本從環境變數中擷取 AccessKey ID 和 AccessKey Secret。
String accessKeyId = System.getenv("ALIBABA_CLOUD_ACCESS_KEY_ID");
String accessKeySecret = System.getenv("ALIBABA_CLOUD_ACCESS_KEY_SECRET");
ClientConfiguration clientConfiguration = new ClientConfiguration();
clientConfiguration.setRegion("cn-beijing");
clientConfiguration.setSignatureVersion(SignVersion.V4);
Client client = new Client(endpoint,
accessKeyId,
accessKeySecret,
clientConfiguration);
}
}