Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 2026 by g-core
published on Thursday, Aug 6, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 2026 by g-core
published on Thursday, Aug 6, 2026 by g-core
CDN origin shielding locations are the available shield (precache) points of presence that can be referenced when configuring origin shielding for a CDN resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCdnShieldingLocations = gcore.getCdnShieldingLocations({});
import pulumi
import pulumi_gcore as gcore
example_cdn_shielding_locations = gcore.get_cdn_shielding_locations()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.GetCdnShieldingLocations(ctx, &gcore.GetCdnShieldingLocationsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCdnShieldingLocations = Gcore.GetCdnShieldingLocations.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetCdnShieldingLocationsArgs;
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 exampleCdnShieldingLocations = GcoreFunctions.getCdnShieldingLocations(GetCdnShieldingLocationsArgs.builder()
.build());
}
}
variables:
exampleCdnShieldingLocations:
fn::invoke:
function: gcore:getCdnShieldingLocations
arguments: {}
Example coming soon!
Using getCdnShieldingLocations
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 getCdnShieldingLocations(args: GetCdnShieldingLocationsArgs, opts?: InvokeOptions): Promise<GetCdnShieldingLocationsResult>
function getCdnShieldingLocationsOutput(args: GetCdnShieldingLocationsOutputArgs, opts?: InvokeOptions): Output<GetCdnShieldingLocationsResult>def get_cdn_shielding_locations(max_items: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnShieldingLocationsResult
def get_cdn_shielding_locations_output(max_items: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdnShieldingLocationsResult]func GetCdnShieldingLocations(ctx *Context, args *GetCdnShieldingLocationsArgs, opts ...InvokeOption) (*GetCdnShieldingLocationsResult, error)
func GetCdnShieldingLocationsOutput(ctx *Context, args *GetCdnShieldingLocationsOutputArgs, opts ...InvokeOption) GetCdnShieldingLocationsResultOutput> Note: This function is named GetCdnShieldingLocations in the Go SDK.
public static class GetCdnShieldingLocations
{
public static Task<GetCdnShieldingLocationsResult> InvokeAsync(GetCdnShieldingLocationsArgs args, InvokeOptions? opts = null)
public static Output<GetCdnShieldingLocationsResult> Invoke(GetCdnShieldingLocationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCdnShieldingLocationsResult> getCdnShieldingLocations(GetCdnShieldingLocationsArgs args, InvokeOptions options)
public static Output<GetCdnShieldingLocationsResult> getCdnShieldingLocations(GetCdnShieldingLocationsArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCdnShieldingLocations:getCdnShieldingLocations
arguments:
# arguments dictionarydata "gcore_get_cdn_shielding_locations" "name" {
# arguments
}The following arguments are supported:
- Max
Items double - Max items to fetch, default: 1000
- Max
Items float64 - Max items to fetch, default: 1000
- max_
items number - Max items to fetch, default: 1000
- max
Items Double - Max items to fetch, default: 1000
- max
Items number - Max items to fetch, default: 1000
- max_
items float - Max items to fetch, default: 1000
- max
Items Number - Max items to fetch, default: 1000
getCdnShieldingLocations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Cdn Shielding Locations Item> - The items returned by the data source
- Max
Items double - Max items to fetch, default: 1000
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Cdn Shielding Locations Item - The items returned by the data source
- Max
Items float64 - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- items list(object)
- The items returned by the data source
- max_
items number - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Cdn Shielding Locations Item> - The items returned by the data source
- max
Items Double - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Cdn Shielding Locations Item[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Cdn Shielding Locations Item] - The items returned by the data source
- max_
items float - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetCdnShieldingLocationsItem
- City string
- City of origin shielding location.
- Country string
- Country of origin shielding location.
- Datacenter string
- Name of origin shielding location datacenter.
- Id double
- Origin shielding location ID.
- City string
- City of origin shielding location.
- Country string
- Country of origin shielding location.
- Datacenter string
- Name of origin shielding location datacenter.
- Id float64
- Origin shielding location ID.
- city string
- City of origin shielding location.
- country string
- Country of origin shielding location.
- datacenter string
- Name of origin shielding location datacenter.
- id number
- Origin shielding location ID.
- city String
- City of origin shielding location.
- country String
- Country of origin shielding location.
- datacenter String
- Name of origin shielding location datacenter.
- id Double
- Origin shielding location ID.
- city string
- City of origin shielding location.
- country string
- Country of origin shielding location.
- datacenter string
- Name of origin shielding location datacenter.
- id number
- Origin shielding location ID.
- city str
- City of origin shielding location.
- country str
- Country of origin shielding location.
- datacenter str
- Name of origin shielding location datacenter.
- id float
- Origin shielding location ID.
- city String
- City of origin shielding location.
- country String
- Country of origin shielding location.
- datacenter String
- Name of origin shielding location datacenter.
- id Number
- Origin shielding location ID.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 2026 by g-core
published on Thursday, Aug 6, 2026 by g-core