netlify 0.2.2 published on Friday, Mar 7, 2025 by netlify
netlify.getTeam
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netlify from "@pulumi/netlify";
const team = netlify.getTeam({
id: "6600abcdef1234567890abcd",
});
import pulumi
import pulumi_netlify as netlify
team = netlify.get_team(id="6600abcdef1234567890abcd")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netlify/netlify"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netlify.GetTeam(ctx, &netlify.GetTeamArgs{
Id: pulumi.StringRef("6600abcdef1234567890abcd"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netlify = Pulumi.Netlify;
return await Deployment.RunAsync(() =>
{
var team = Netlify.GetTeam.Invoke(new()
{
Id = "6600abcdef1234567890abcd",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netlify.NetlifyFunctions;
import com.pulumi.netlify.inputs.GetTeamArgs;
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 team = NetlifyFunctions.getTeam(GetTeamArgs.builder()
.id("6600abcdef1234567890abcd")
.build());
}
}
variables:
team:
fn::invoke:
function: netlify:getTeam
arguments:
id: 6600abcdef1234567890abcd
Using getTeam
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 getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOptions): Output<GetTeamResult>
def get_team(id: Optional[str] = None,
slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamResult
def get_team_output(id: Optional[pulumi.Input[str]] = None,
slug: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]
func GetTeam(ctx *Context, args *GetTeamArgs, opts ...InvokeOption) (*GetTeamResult, error)
func GetTeamOutput(ctx *Context, args *GetTeamOutputArgs, opts ...InvokeOption) GetTeamResultOutput
> Note: This function is named GetTeam
in the Go SDK.
public static class GetTeam
{
public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
fn::invoke:
function: netlify:index/getTeam:getTeam
arguments:
# arguments dictionary
The following arguments are supported:
getTeam Result
The following output properties are available:
Package Details
- Repository
- netlify netlify/terraform-provider-netlify
- License
- Notes
- This Pulumi package is based on the
netlify
Terraform Provider.