AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.networkmanager.getSite
Explore with Pulumi AI
Retrieve information about a site.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getSite({
    globalNetworkId: globalNetworkId,
    siteId: siteId,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_site(global_network_id=global_network_id,
    site_id=site_id)
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkmanager.LookupSite(ctx, &networkmanager.LookupSiteArgs{
			GlobalNetworkId: globalNetworkId,
			SiteId:          siteId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.NetworkManager.GetSite.Invoke(new()
    {
        GlobalNetworkId = globalNetworkId,
        SiteId = siteId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.NetworkmanagerFunctions;
import com.pulumi.aws.networkmanager.inputs.GetSiteArgs;
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 example = NetworkmanagerFunctions.getSite(GetSiteArgs.builder()
            .globalNetworkId(globalNetworkId)
            .siteId(siteId)
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:networkmanager:getSite
      arguments:
        globalNetworkId: ${globalNetworkId}
        siteId: ${siteId}
Using getSite
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 getSite(args: GetSiteArgs, opts?: InvokeOptions): Promise<GetSiteResult>
function getSiteOutput(args: GetSiteOutputArgs, opts?: InvokeOptions): Output<GetSiteResult>def get_site(global_network_id: Optional[str] = None,
             site_id: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None,
             opts: Optional[InvokeOptions] = None) -> GetSiteResult
def get_site_output(global_network_id: Optional[pulumi.Input[str]] = None,
             site_id: Optional[pulumi.Input[str]] = None,
             tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetSiteResult]func LookupSite(ctx *Context, args *LookupSiteArgs, opts ...InvokeOption) (*LookupSiteResult, error)
func LookupSiteOutput(ctx *Context, args *LookupSiteOutputArgs, opts ...InvokeOption) LookupSiteResultOutput> Note: This function is named LookupSite in the Go SDK.
public static class GetSite 
{
    public static Task<GetSiteResult> InvokeAsync(GetSiteArgs args, InvokeOptions? opts = null)
    public static Output<GetSiteResult> Invoke(GetSiteInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSiteResult> getSite(GetSiteArgs args, InvokeOptions options)
public static Output<GetSiteResult> getSite(GetSiteArgs args, InvokeOptions options)
fn::invoke:
  function: aws:networkmanager/getSite:getSite
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GlobalNetwork stringId 
- ID of the Global Network of the site to retrieve.
- SiteId string
- ID of the specific site to retrieve.
- Dictionary<string, string>
- Key-value tags for the Site.
- GlobalNetwork stringId 
- ID of the Global Network of the site to retrieve.
- SiteId string
- ID of the specific site to retrieve.
- map[string]string
- Key-value tags for the Site.
- globalNetwork StringId 
- ID of the Global Network of the site to retrieve.
- siteId String
- ID of the specific site to retrieve.
- Map<String,String>
- Key-value tags for the Site.
- globalNetwork stringId 
- ID of the Global Network of the site to retrieve.
- siteId string
- ID of the specific site to retrieve.
- {[key: string]: string}
- Key-value tags for the Site.
- global_network_ strid 
- ID of the Global Network of the site to retrieve.
- site_id str
- ID of the specific site to retrieve.
- Mapping[str, str]
- Key-value tags for the Site.
- globalNetwork StringId 
- ID of the Global Network of the site to retrieve.
- siteId String
- ID of the specific site to retrieve.
- Map<String>
- Key-value tags for the Site.
getSite Result
The following output properties are available:
- Arn string
- ARN of the site.
- Description string
- Description of the site.
- GlobalNetwork stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Locations
List<GetSite Location> 
- Site location as documented below.
- SiteId string
- Dictionary<string, string>
- Key-value tags for the Site.
- Arn string
- ARN of the site.
- Description string
- Description of the site.
- GlobalNetwork stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Locations
[]GetSite Location 
- Site location as documented below.
- SiteId string
- map[string]string
- Key-value tags for the Site.
- arn String
- ARN of the site.
- description String
- Description of the site.
- globalNetwork StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- locations
List<GetSite Location> 
- Site location as documented below.
- siteId String
- Map<String,String>
- Key-value tags for the Site.
- arn string
- ARN of the site.
- description string
- Description of the site.
- globalNetwork stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- locations
GetSite Location[] 
- Site location as documented below.
- siteId string
- {[key: string]: string}
- Key-value tags for the Site.
- arn str
- ARN of the site.
- description str
- Description of the site.
- global_network_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- locations
Sequence[GetSite Location] 
- Site location as documented below.
- site_id str
- Mapping[str, str]
- Key-value tags for the Site.
- arn String
- ARN of the site.
- description String
- Description of the site.
- globalNetwork StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- locations List<Property Map>
- Site location as documented below.
- siteId String
- Map<String>
- Key-value tags for the Site.
Supporting Types
GetSiteLocation  
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.