Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getIpInfo

This data source provides the function of verifying whether an IP is a CDN node.

NOTE: Available in v1.153.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ipTest = Output.Create(AliCloud.Cdn.GetIpInfo.InvokeAsync(new AliCloud.Cdn.GetIpInfoArgs
        {
            Ip = "114.114.114.114",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.GetIpInfo(ctx, &cdn.GetIpInfoArgs{
			Ip: "114.114.114.114",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ip_test = alicloud.cdn.get_ip_info(ip="114.114.114.114")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ipTest = pulumi.output(alicloud.cdn.getIpInfo({
    ip: "114.114.114.114",
}));

Coming soon!

Using getIpInfo

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIpInfo(args: GetIpInfoArgs, opts?: InvokeOptions): Promise<GetIpInfoResult>
function getIpInfoOutput(args: GetIpInfoOutputArgs, opts?: InvokeOptions): Output<GetIpInfoResult>
def get_ip_info(ip: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetIpInfoResult
def get_ip_info_output(ip: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetIpInfoResult]
func GetIpInfo(ctx *Context, args *GetIpInfoArgs, opts ...InvokeOption) (*GetIpInfoResult, error)
func GetIpInfoOutput(ctx *Context, args *GetIpInfoOutputArgs, opts ...InvokeOption) GetIpInfoResultOutput

> Note: This function is named GetIpInfo in the Go SDK.

public static class GetIpInfo 
{
    public static Task<GetIpInfoResult> InvokeAsync(GetIpInfoArgs args, InvokeOptions? opts = null)
    public static Output<GetIpInfoResult> Invoke(GetIpInfoInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpInfoResult> getIpInfo(GetIpInfoArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:cdn/getIpInfo:getIpInfo
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Ip string

Specify IP address.

Ip string

Specify IP address.

ip String

Specify IP address.

ip string

Specify IP address.

ip str

Specify IP address.

ip String

Specify IP address.

getIpInfo Result

The following output properties are available:

CdnIp string
Id string

The provider-assigned unique ID for this managed resource.

Ip string
Isp string
IspEname string
Region string
RegionEname string
CdnIp string
Id string

The provider-assigned unique ID for this managed resource.

Ip string
Isp string
IspEname string
Region string
RegionEname string
cdnIp String
id String

The provider-assigned unique ID for this managed resource.

ip String
isp String
ispEname String
region String
regionEname String
cdnIp string
id string

The provider-assigned unique ID for this managed resource.

ip string
isp string
ispEname string
region string
regionEname string
cdn_ip str
id str

The provider-assigned unique ID for this managed resource.

ip str
isp str
isp_ename str
region str
region_ename str
cdnIp String
id String

The provider-assigned unique ID for this managed resource.

ip String
isp String
ispEname String
region String
regionEname String

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.