Viewing docs for Azure DevOps v3.14.0
published on Tuesday, Mar 24, 2026 by Pulumi
published on Tuesday, Mar 24, 2026 by Pulumi
Viewing docs for Azure DevOps v3.14.0
published on Tuesday, Mar 24, 2026 by Pulumi
published on Tuesday, Mar 24, 2026 by Pulumi
Use this data source to access information about a specific security namespace within Azure DevOps. Security namespaces define the security model for different resources and operations in Azure DevOps.
Example Usage
Find a Specific Namespace by Name
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const git = azuredevops.getSecurityNamespace({
name: "Git Repositories",
});
export const gitId = git.then(git => git.id);
export const gitPermissions = git.then(git => git.actions);
import pulumi
import pulumi_azuredevops as azuredevops
git = azuredevops.get_security_namespace(name="Git Repositories")
pulumi.export("gitId", git.id)
pulumi.export("gitPermissions", git.actions)
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
git, err := azuredevops.GetSecurityNamespace(ctx, &azuredevops.GetSecurityNamespaceArgs{
Name: pulumi.StringRef("Git Repositories"),
}, nil)
if err != nil {
return err
}
ctx.Export("gitId", git.Id)
ctx.Export("gitPermissions", git.Actions)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var git = AzureDevOps.GetSecurityNamespace.Invoke(new()
{
Name = "Git Repositories",
});
return new Dictionary<string, object?>
{
["gitId"] = git.Apply(getSecurityNamespaceResult => getSecurityNamespaceResult.Id),
["gitPermissions"] = git.Apply(getSecurityNamespaceResult => getSecurityNamespaceResult.Actions),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetSecurityNamespaceArgs;
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 git = AzuredevopsFunctions.getSecurityNamespace(GetSecurityNamespaceArgs.builder()
.name("Git Repositories")
.build());
ctx.export("gitId", git.id());
ctx.export("gitPermissions", git.actions());
}
}
variables:
git:
fn::invoke:
function: azuredevops:getSecurityNamespace
arguments:
name: Git Repositories
outputs:
gitId: ${git.id}
gitPermissions: ${git.actions}
Find a Specific Namespace by ID
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const project = azuredevops.getSecurityNamespace({
id: "52d39943-cb85-4d7f-8fa8-c6baac873819",
});
export const projectNamespaceName = project.then(project => project.name);
import pulumi
import pulumi_azuredevops as azuredevops
project = azuredevops.get_security_namespace(id="52d39943-cb85-4d7f-8fa8-c6baac873819")
pulumi.export("projectNamespaceName", project.name)
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := azuredevops.GetSecurityNamespace(ctx, &azuredevops.GetSecurityNamespaceArgs{
Id: pulumi.StringRef("52d39943-cb85-4d7f-8fa8-c6baac873819"),
}, nil)
if err != nil {
return err
}
ctx.Export("projectNamespaceName", project.Name)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var project = AzureDevOps.GetSecurityNamespace.Invoke(new()
{
Id = "52d39943-cb85-4d7f-8fa8-c6baac873819",
});
return new Dictionary<string, object?>
{
["projectNamespaceName"] = project.Apply(getSecurityNamespaceResult => getSecurityNamespaceResult.Name),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetSecurityNamespaceArgs;
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 project = AzuredevopsFunctions.getSecurityNamespace(GetSecurityNamespaceArgs.builder()
.id("52d39943-cb85-4d7f-8fa8-c6baac873819")
.build());
ctx.export("projectNamespaceName", project.name());
}
}
variables:
project:
fn::invoke:
function: azuredevops:getSecurityNamespace
arguments:
id: 52d39943-cb85-4d7f-8fa8-c6baac873819
outputs:
projectNamespaceName: ${project.name}
Relevant Links
Using getSecurityNamespace
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 getSecurityNamespace(args: GetSecurityNamespaceArgs, opts?: InvokeOptions): Promise<GetSecurityNamespaceResult>
function getSecurityNamespaceOutput(args: GetSecurityNamespaceOutputArgs, opts?: InvokeOptions): Output<GetSecurityNamespaceResult>def get_security_namespace(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityNamespaceResult
def get_security_namespace_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityNamespaceResult]func GetSecurityNamespace(ctx *Context, args *GetSecurityNamespaceArgs, opts ...InvokeOption) (*GetSecurityNamespaceResult, error)
func GetSecurityNamespaceOutput(ctx *Context, args *GetSecurityNamespaceOutputArgs, opts ...InvokeOption) GetSecurityNamespaceResultOutput> Note: This function is named GetSecurityNamespace in the Go SDK.
public static class GetSecurityNamespace
{
public static Task<GetSecurityNamespaceResult> InvokeAsync(GetSecurityNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityNamespaceResult> Invoke(GetSecurityNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityNamespaceResult> getSecurityNamespace(GetSecurityNamespaceArgs args, InvokeOptions options)
public static Output<GetSecurityNamespaceResult> getSecurityNamespace(GetSecurityNamespaceArgs args, InvokeOptions options)
fn::invoke:
function: azuredevops:index/getSecurityNamespace:getSecurityNamespace
arguments:
# arguments dictionaryThe following arguments are supported:
getSecurityNamespace Result
The following output properties are available:
- Actions
List<Pulumi.
Azure Dev Ops. Outputs. Get Security Namespace Action> - A set of available actions (permissions) in this namespace. Each
actionblock exports the following: - Display
Name string - The display name of the action/permission.
- Id string
- The unique identifier (UUID) of the security namespace.
- Name string
- The name of the action/permission.
- Actions
[]Get
Security Namespace Action - A set of available actions (permissions) in this namespace. Each
actionblock exports the following: - Display
Name string - The display name of the action/permission.
- Id string
- The unique identifier (UUID) of the security namespace.
- Name string
- The name of the action/permission.
- actions
List<Get
Security Namespace Action> - A set of available actions (permissions) in this namespace. Each
actionblock exports the following: - display
Name String - The display name of the action/permission.
- id String
- The unique identifier (UUID) of the security namespace.
- name String
- The name of the action/permission.
- actions
Get
Security Namespace Action[] - A set of available actions (permissions) in this namespace. Each
actionblock exports the following: - display
Name string - The display name of the action/permission.
- id string
- The unique identifier (UUID) of the security namespace.
- name string
- The name of the action/permission.
- actions
Sequence[Get
Security Namespace Action] - A set of available actions (permissions) in this namespace. Each
actionblock exports the following: - display_
name str - The display name of the action/permission.
- id str
- The unique identifier (UUID) of the security namespace.
- name str
- The name of the action/permission.
- actions List<Property Map>
- A set of available actions (permissions) in this namespace. Each
actionblock exports the following: - display
Name String - The display name of the action/permission.
- id String
- The unique identifier (UUID) of the security namespace.
- name String
- The name of the action/permission.
Supporting Types
GetSecurityNamespaceAction
- Bit int
- The bit value for this permission (used in permission calculations).
- Display
Name string - The display name of the action/permission.
- Name string
- The name of the security namespace.
- Bit int
- The bit value for this permission (used in permission calculations).
- Display
Name string - The display name of the action/permission.
- Name string
- The name of the security namespace.
- bit Integer
- The bit value for this permission (used in permission calculations).
- display
Name String - The display name of the action/permission.
- name String
- The name of the security namespace.
- bit number
- The bit value for this permission (used in permission calculations).
- display
Name string - The display name of the action/permission.
- name string
- The name of the security namespace.
- bit int
- The bit value for this permission (used in permission calculations).
- display_
name str - The display name of the action/permission.
- name str
- The name of the security namespace.
- bit Number
- The bit value for this permission (used in permission calculations).
- display
Name String - The display name of the action/permission.
- name String
- The name of the security namespace.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.
Viewing docs for Azure DevOps v3.14.0
published on Tuesday, Mar 24, 2026 by Pulumi
published on Tuesday, Mar 24, 2026 by Pulumi
