vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getCdnShieldingPops
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const pops = vkcs.getCdnShieldingPops({});
export const shieldingLocations = pops.then(pops => pops.shieldingPops);
import pulumi
import pulumi_vkcs as vkcs
pops = vkcs.get_cdn_shielding_pops()
pulumi.export("shieldingLocations", pops.shielding_pops)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
pops, err := vkcs.GetCdnShieldingPops(ctx, &vkcs.GetCdnShieldingPopsArgs{}, nil)
if err != nil {
return err
}
ctx.Export("shieldingLocations", pops.ShieldingPops)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var pops = Vkcs.GetCdnShieldingPops.Invoke();
return new Dictionary<string, object?>
{
["shieldingLocations"] = pops.Apply(getCdnShieldingPopsResult => getCdnShieldingPopsResult.ShieldingPops),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetCdnShieldingPopsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var pops = VkcsFunctions.getCdnShieldingPops();
ctx.export("shieldingLocations", pops.applyValue(getCdnShieldingPopsResult -> getCdnShieldingPopsResult.shieldingPops()));
}
}
variables:
pops:
fn::invoke:
function: vkcs:getCdnShieldingPops
arguments: {}
outputs:
shieldingLocations: ${pops.shieldingPops}
Using getCdnShieldingPops
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 getCdnShieldingPops(args: GetCdnShieldingPopsArgs, opts?: InvokeOptions): Promise<GetCdnShieldingPopsResult>
function getCdnShieldingPopsOutput(args: GetCdnShieldingPopsOutputArgs, opts?: InvokeOptions): Output<GetCdnShieldingPopsResult>
def get_cdn_shielding_pops(region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnShieldingPopsResult
def get_cdn_shielding_pops_output(region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdnShieldingPopsResult]
func GetCdnShieldingPops(ctx *Context, args *GetCdnShieldingPopsArgs, opts ...InvokeOption) (*GetCdnShieldingPopsResult, error)
func GetCdnShieldingPopsOutput(ctx *Context, args *GetCdnShieldingPopsOutputArgs, opts ...InvokeOption) GetCdnShieldingPopsResultOutput
> Note: This function is named GetCdnShieldingPops
in the Go SDK.
public static class GetCdnShieldingPops
{
public static Task<GetCdnShieldingPopsResult> InvokeAsync(GetCdnShieldingPopsArgs args, InvokeOptions? opts = null)
public static Output<GetCdnShieldingPopsResult> Invoke(GetCdnShieldingPopsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCdnShieldingPopsResult> getCdnShieldingPops(GetCdnShieldingPopsArgs args, InvokeOptions options)
public static Output<GetCdnShieldingPopsResult> getCdnShieldingPops(GetCdnShieldingPopsArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getCdnShieldingPops:getCdnShieldingPops
arguments:
# arguments dictionary
The following arguments are supported:
- Region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used.
- Region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used.
- region String
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used.
- region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used.
- region str
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used.
- region String
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used.
getCdnShieldingPops Result
The following output properties are available:
- Id string
- number → ID of the origin shielding location.
- Region string
- Shielding
Pops List<GetCdn Shielding Pops Shielding Pop> - list → List of available origin shielding points of precense.
- Id string
- number → ID of the origin shielding location.
- Region string
- Shielding
Pops []GetCdn Shielding Pops Shielding Pop - list → List of available origin shielding points of precense.
- id String
- number → ID of the origin shielding location.
- region String
- shielding
Pops List<GetCdn Shielding Pops Shielding Pop> - list → List of available origin shielding points of precense.
- id string
- number → ID of the origin shielding location.
- region string
- shielding
Pops GetCdn Shielding Pops Shielding Pop[] - list → List of available origin shielding points of precense.
- id str
- number → ID of the origin shielding location.
- region str
- shielding_
pops Sequence[GetCdn Shielding Pops Shielding Pop] - list → List of available origin shielding points of precense.
- id String
- number → ID of the origin shielding location.
- region String
- shielding
Pops List<Property Map> - list → List of available origin shielding points of precense.
Supporting Types
GetCdnShieldingPopsShieldingPop
- City string
- string → City of origin shielding location.
- Country string
- string → Country of origin shielding location.
- Datacenter string
- string → Name of origin shielding location datacenter.
- Id double
- number → ID of the origin shielding location.
- City string
- string → City of origin shielding location.
- Country string
- string → Country of origin shielding location.
- Datacenter string
- string → Name of origin shielding location datacenter.
- Id float64
- number → ID of the origin shielding location.
- city String
- string → City of origin shielding location.
- country String
- string → Country of origin shielding location.
- datacenter String
- string → Name of origin shielding location datacenter.
- id Double
- number → ID of the origin shielding location.
- city string
- string → City of origin shielding location.
- country string
- string → Country of origin shielding location.
- datacenter string
- string → Name of origin shielding location datacenter.
- id number
- number → ID of the origin shielding location.
- city str
- string → City of origin shielding location.
- country str
- string → Country of origin shielding location.
- datacenter str
- string → Name of origin shielding location datacenter.
- id float
- number → ID of the origin shielding location.
- city String
- string → City of origin shielding location.
- country String
- string → Country of origin shielding location.
- datacenter String
- string → Name of origin shielding location datacenter.
- id Number
- number → ID of the origin shielding location.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.