azuredevops.getSecurityroleDefinitions
Explore with Pulumi AI
Use this data source to access information about existing Security Role Definitions within a given scope in Azure DevOps.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getSecurityroleDefinitions({
    scope: "distributedtask.environmentreferencerole",
});
export const securityroleDefinitions = exampleAazuredevopsSecurityroleDefinitions.definitions;
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_securityrole_definitions(scope="distributedtask.environmentreferencerole")
pulumi.export("securityroleDefinitions", example_aazuredevops_securityrole_definitions["definitions"])
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 {
		_, err := azuredevops.GetSecurityroleDefinitions(ctx, &azuredevops.GetSecurityroleDefinitionsArgs{
			Scope: "distributedtask.environmentreferencerole",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("securityroleDefinitions", exampleAazuredevopsSecurityroleDefinitions.Definitions)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() => 
{
    var example = AzureDevOps.GetSecurityroleDefinitions.Invoke(new()
    {
        Scope = "distributedtask.environmentreferencerole",
    });
    return new Dictionary<string, object?>
    {
        ["securityroleDefinitions"] = exampleAazuredevopsSecurityroleDefinitions.Definitions,
    };
});
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.GetSecurityroleDefinitionsArgs;
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 = AzuredevopsFunctions.getSecurityroleDefinitions(GetSecurityroleDefinitionsArgs.builder()
            .scope("distributedtask.environmentreferencerole")
            .build());
        ctx.export("securityroleDefinitions", exampleAazuredevopsSecurityroleDefinitions.definitions());
    }
}
variables:
  example:
    fn::invoke:
      function: azuredevops:getSecurityroleDefinitions
      arguments:
        scope: distributedtask.environmentreferencerole
outputs:
  securityroleDefinitions: ${exampleAazuredevopsSecurityroleDefinitions.definitions}
Relevant Links
Using getSecurityroleDefinitions
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 getSecurityroleDefinitions(args: GetSecurityroleDefinitionsArgs, opts?: InvokeOptions): Promise<GetSecurityroleDefinitionsResult>
function getSecurityroleDefinitionsOutput(args: GetSecurityroleDefinitionsOutputArgs, opts?: InvokeOptions): Output<GetSecurityroleDefinitionsResult>def get_securityrole_definitions(scope: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSecurityroleDefinitionsResult
def get_securityrole_definitions_output(scope: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSecurityroleDefinitionsResult]func GetSecurityroleDefinitions(ctx *Context, args *GetSecurityroleDefinitionsArgs, opts ...InvokeOption) (*GetSecurityroleDefinitionsResult, error)
func GetSecurityroleDefinitionsOutput(ctx *Context, args *GetSecurityroleDefinitionsOutputArgs, opts ...InvokeOption) GetSecurityroleDefinitionsResultOutput> Note: This function is named GetSecurityroleDefinitions in the Go SDK.
public static class GetSecurityroleDefinitions 
{
    public static Task<GetSecurityroleDefinitionsResult> InvokeAsync(GetSecurityroleDefinitionsArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityroleDefinitionsResult> Invoke(GetSecurityroleDefinitionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityroleDefinitionsResult> getSecurityroleDefinitions(GetSecurityroleDefinitionsArgs args, InvokeOptions options)
public static Output<GetSecurityroleDefinitionsResult> getSecurityroleDefinitions(GetSecurityroleDefinitionsArgs args, InvokeOptions options)
fn::invoke:
  function: azuredevops:index/getSecurityroleDefinitions:getSecurityroleDefinitions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Scope string
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- Scope string
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- scope String
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- scope string
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- scope str
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- scope String
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
getSecurityroleDefinitions Result
The following output properties are available:
- Definitions
List<Pulumi.Azure Dev Ops. Outputs. Get Securityrole Definitions Definition> 
- A list of existing Security Role Definitions in a Scope in your Azure DevOps Organization with details about every definition which includes. A definitionsblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scope string
- The scope of the Security Role Definition.
- Definitions
[]GetSecurityrole Definitions Definition 
- A list of existing Security Role Definitions in a Scope in your Azure DevOps Organization with details about every definition which includes. A definitionsblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scope string
- The scope of the Security Role Definition.
- definitions
List<GetSecurityrole Definitions Definition> 
- A list of existing Security Role Definitions in a Scope in your Azure DevOps Organization with details about every definition which includes. A definitionsblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- scope String
- The scope of the Security Role Definition.
- definitions
GetSecurityrole Definitions Definition[] 
- A list of existing Security Role Definitions in a Scope in your Azure DevOps Organization with details about every definition which includes. A definitionsblock as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- scope string
- The scope of the Security Role Definition.
- definitions
Sequence[GetSecurityrole Definitions Definition] 
- A list of existing Security Role Definitions in a Scope in your Azure DevOps Organization with details about every definition which includes. A definitionsblock as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- scope str
- The scope of the Security Role Definition.
- definitions List<Property Map>
- A list of existing Security Role Definitions in a Scope in your Azure DevOps Organization with details about every definition which includes. A definitionsblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- scope String
- The scope of the Security Role Definition.
Supporting Types
GetSecurityroleDefinitionsDefinition   
- AllowPermissions int
- The mask of allowed permissions of the Security Role Definition.
- Description string
- The description of the Security Role Definition.
- DisplayName string
- The display name of the Security Role Definition.
- Identifier string
- The identifier of the Security Role Definition.
- Name string
- The name of the Security Role Definition.
- Scope string
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- DenyPermissions int
- The mask of the denied permissions of the Security Role Definition.
- AllowPermissions int
- The mask of allowed permissions of the Security Role Definition.
- Description string
- The description of the Security Role Definition.
- DisplayName string
- The display name of the Security Role Definition.
- Identifier string
- The identifier of the Security Role Definition.
- Name string
- The name of the Security Role Definition.
- Scope string
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- DenyPermissions int
- The mask of the denied permissions of the Security Role Definition.
- allowPermissions Integer
- The mask of allowed permissions of the Security Role Definition.
- description String
- The description of the Security Role Definition.
- displayName String
- The display name of the Security Role Definition.
- identifier String
- The identifier of the Security Role Definition.
- name String
- The name of the Security Role Definition.
- scope String
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- denyPermissions Integer
- The mask of the denied permissions of the Security Role Definition.
- allowPermissions number
- The mask of allowed permissions of the Security Role Definition.
- description string
- The description of the Security Role Definition.
- displayName string
- The display name of the Security Role Definition.
- identifier string
- The identifier of the Security Role Definition.
- name string
- The name of the Security Role Definition.
- scope string
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- denyPermissions number
- The mask of the denied permissions of the Security Role Definition.
- allow_permissions int
- The mask of allowed permissions of the Security Role Definition.
- description str
- The description of the Security Role Definition.
- display_name str
- The display name of the Security Role Definition.
- identifier str
- The identifier of the Security Role Definition.
- name str
- The name of the Security Role Definition.
- scope str
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- deny_permissions int
- The mask of the denied permissions of the Security Role Definition.
- allowPermissions Number
- The mask of allowed permissions of the Security Role Definition.
- description String
- The description of the Security Role Definition.
- displayName String
- The display name of the Security Role Definition.
- identifier String
- The identifier of the Security Role Definition.
- name String
- The name of the Security Role Definition.
- scope String
- Name of the Scope for which Security Role Definitions will be returned. - NOTE: DataSource without specifying any arguments will return all projects. 
- denyPermissions Number
- The mask of the denied permissions of the Security Role Definition.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azuredevopsTerraform Provider.