Skip to content
New issue

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

elasticsearch 缺少字段 #580

Open
kzcPo opened this issue Jan 5, 2023 · 1 comment
Open

elasticsearch 缺少字段 #580

kzcPo opened this issue Jan 5, 2023 · 1 comment

Comments

@kzcPo
Copy link

kzcPo commented Jan 5, 2023

  • Product and API: github.com/aliyun/alibaba-cloud-sdk-go v1.62.114

elasticsearch ResultInDescribeInstance struct 缺少 kibanaPrivateDomain字段

@ljluestc
Copy link

package main

import (
    "fmt"
    "github.com/aliyun/alibaba-cloud-sdk-go/services/elasticsearch"
)

func main() {
    // 创建 Elasticsearch 客户端
    client, err := elasticsearch.NewClientWithAccessKey("cn-hangzhou", "<your-access-key-id>", "<your-access-key-secret>")
    if err != nil {
        fmt.Println("Error creating client:", err)
        return
    }

    // 调用 DescribeInstances API 获取实例信息
    request := elasticsearch.CreateDescribeInstancesRequest()
    response, err := client.DescribeInstances(request)
    if err != nil {
        fmt.Println("Error calling DescribeInstances:", err)
        return
    }

    // 打印 kibanaPrivateDomain 字段的值
    for _, instance := range response.Instances.Instance {
        fmt.Println("KibanaPrivateDomain:", instance.KibanaPrivateDomain)
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants