netlify 0.3.2 published on Wednesday, Nov 5, 2025 by netlify
netlify.getSite
Start a Neo task
Explain and create a netlify.getSite resource
Example Usage
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(id: Optional[str] = None,
name: Optional[str] = None,
team_slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSiteResult
def get_site_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
team_slug: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSiteResult]func GetSite(ctx *Context, args *GetSiteArgs, opts ...InvokeOption) (*GetSiteResult, error)
func GetSiteOutput(ctx *Context, args *GetSiteOutputArgs, opts ...InvokeOption) GetSiteResultOutput> Note: This function is named GetSite 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: netlify:index/getSite:getSite
arguments:
# arguments dictionaryThe following arguments are supported:
getSite Result
The following output properties are available:
- Custom
Domain string - Domain
Aliases List<string> - Git
Deploy stringKey - Id string
- The ID of this resource.
- Name string
- Team
Slug string - Required if name is specified and a default team was not configured in the provider configuration.
- Custom
Domain string - Domain
Aliases []string - Git
Deploy stringKey - Id string
- The ID of this resource.
- Name string
- Team
Slug string - Required if name is specified and a default team was not configured in the provider configuration.
- custom
Domain String - domain
Aliases List<String> - git
Deploy StringKey - id String
- The ID of this resource.
- name String
- team
Slug String - Required if name is specified and a default team was not configured in the provider configuration.
- custom
Domain string - domain
Aliases string[] - git
Deploy stringKey - id string
- The ID of this resource.
- name string
- team
Slug string - Required if name is specified and a default team was not configured in the provider configuration.
- custom_
domain str - domain_
aliases Sequence[str] - git_
deploy_ strkey - id str
- The ID of this resource.
- name str
- team_
slug str - Required if name is specified and a default team was not configured in the provider configuration.
- custom
Domain String - domain
Aliases List<String> - git
Deploy StringKey - id String
- The ID of this resource.
- name String
- team
Slug String - Required if name is specified and a default team was not configured in the provider configuration.
Package Details
- Repository
- netlify netlify/terraform-provider-netlify
- License
- Notes
- This Pulumi package is based on the
netlifyTerraform Provider.
