为什么 Vsphere 主机以 /sdk 结尾?
Why Vsphere host ends with /sdk?
为什么我需要在我的主机地址末尾包含 /sdk?例如,如果我将主机设置为 https://vcenter.test.ca I get a server error but with https://vcenter.test.ca/sdk,它运行良好。
我的 metricbeat.yml 的内容是这样的:
metricbeat.modules:
# Vsphere module
- module: vsphere
enabled: true
metricsets: ["datastore", "host", "virtualmachine"]
period: 60s
**hosts: ["https://vcenter.test.ca/sdk"]**
username: "test@test.ca"
password: "****"
insecure: true
我发现 url 末尾的 /sdk 是 API 路由。如果它未包含在您的 url 中,您将得到:
"error": {
"message": "Post https://vcenter.test.ca: **x509: certificate signed by unknown authority**"
},
为什么我需要在我的主机地址末尾包含 /sdk?例如,如果我将主机设置为 https://vcenter.test.ca I get a server error but with https://vcenter.test.ca/sdk,它运行良好。
我的 metricbeat.yml 的内容是这样的:
metricbeat.modules:
# Vsphere module
- module: vsphere
enabled: true
metricsets: ["datastore", "host", "virtualmachine"]
period: 60s
**hosts: ["https://vcenter.test.ca/sdk"]**
username: "test@test.ca"
password: "****"
insecure: true
我发现 url 末尾的 /sdk 是 API 路由。如果它未包含在您的 url 中,您将得到:
"error": {
"message": "Post https://vcenter.test.ca: **x509: certificate signed by unknown authority**"
},