1. Packages
  2. Azuredevops Provider
  3. API Docs
  4. SecurityroleAssignment
Azure DevOps v3.4.0 published on Wednesday, Oct 30, 2024 by Pulumi

azuredevops.SecurityroleAssignment

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.4.0 published on Wednesday, Oct 30, 2024 by Pulumi

    Manages assignment of security roles to various resources within Azure DevOps organization.

    Create SecurityroleAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecurityroleAssignment(name: string, args: SecurityroleAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityroleAssignment(resource_name: str,
                               args: SecurityroleAssignmentArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityroleAssignment(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               identity_id: Optional[str] = None,
                               resource_id: Optional[str] = None,
                               role_name: Optional[str] = None,
                               scope: Optional[str] = None)
    func NewSecurityroleAssignment(ctx *Context, name string, args SecurityroleAssignmentArgs, opts ...ResourceOption) (*SecurityroleAssignment, error)
    public SecurityroleAssignment(string name, SecurityroleAssignmentArgs args, CustomResourceOptions? opts = null)
    public SecurityroleAssignment(String name, SecurityroleAssignmentArgs args)
    public SecurityroleAssignment(String name, SecurityroleAssignmentArgs args, CustomResourceOptions options)
    
    type: azuredevops:SecurityroleAssignment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecurityroleAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecurityroleAssignmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecurityroleAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityroleAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityroleAssignmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var securityroleAssignmentResource = new AzureDevOps.SecurityroleAssignment("securityroleAssignmentResource", new()
    {
        IdentityId = "string",
        ResourceId = "string",
        RoleName = "string",
        Scope = "string",
    });
    
    example, err := azuredevops.NewSecurityroleAssignment(ctx, "securityroleAssignmentResource", &azuredevops.SecurityroleAssignmentArgs{
    	IdentityId: pulumi.String("string"),
    	ResourceId: pulumi.String("string"),
    	RoleName:   pulumi.String("string"),
    	Scope:      pulumi.String("string"),
    })
    
    var securityroleAssignmentResource = new SecurityroleAssignment("securityroleAssignmentResource", SecurityroleAssignmentArgs.builder()
        .identityId("string")
        .resourceId("string")
        .roleName("string")
        .scope("string")
        .build());
    
    securityrole_assignment_resource = azuredevops.SecurityroleAssignment("securityroleAssignmentResource",
        identity_id="string",
        resource_id="string",
        role_name="string",
        scope="string")
    
    const securityroleAssignmentResource = new azuredevops.SecurityroleAssignment("securityroleAssignmentResource", {
        identityId: "string",
        resourceId: "string",
        roleName: "string",
        scope: "string",
    });
    
    type: azuredevops:SecurityroleAssignment
    properties:
        identityId: string
        resourceId: string
        roleName: string
        scope: string
    

    SecurityroleAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecurityroleAssignment resource accepts the following input properties:

    IdentityId string
    The ID of the identity to authorize.
    ResourceId string
    The ID of the resource on which the role is to be assigned.
    RoleName string
    Name of the role to assign.
    Scope string
    The scope in which this assignment should exist.
    IdentityId string
    The ID of the identity to authorize.
    ResourceId string
    The ID of the resource on which the role is to be assigned.
    RoleName string
    Name of the role to assign.
    Scope string
    The scope in which this assignment should exist.
    identityId String
    The ID of the identity to authorize.
    resourceId String
    The ID of the resource on which the role is to be assigned.
    roleName String
    Name of the role to assign.
    scope String
    The scope in which this assignment should exist.
    identityId string
    The ID of the identity to authorize.
    resourceId string
    The ID of the resource on which the role is to be assigned.
    roleName string
    Name of the role to assign.
    scope string
    The scope in which this assignment should exist.
    identity_id str
    The ID of the identity to authorize.
    resource_id str
    The ID of the resource on which the role is to be assigned.
    role_name str
    Name of the role to assign.
    scope str
    The scope in which this assignment should exist.
    identityId String
    The ID of the identity to authorize.
    resourceId String
    The ID of the resource on which the role is to be assigned.
    roleName String
    Name of the role to assign.
    scope String
    The scope in which this assignment should exist.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityroleAssignment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SecurityroleAssignment Resource

    Get an existing SecurityroleAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecurityroleAssignmentState, opts?: CustomResourceOptions): SecurityroleAssignment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            identity_id: Optional[str] = None,
            resource_id: Optional[str] = None,
            role_name: Optional[str] = None,
            scope: Optional[str] = None) -> SecurityroleAssignment
    func GetSecurityroleAssignment(ctx *Context, name string, id IDInput, state *SecurityroleAssignmentState, opts ...ResourceOption) (*SecurityroleAssignment, error)
    public static SecurityroleAssignment Get(string name, Input<string> id, SecurityroleAssignmentState? state, CustomResourceOptions? opts = null)
    public static SecurityroleAssignment get(String name, Output<String> id, SecurityroleAssignmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    IdentityId string
    The ID of the identity to authorize.
    ResourceId string
    The ID of the resource on which the role is to be assigned.
    RoleName string
    Name of the role to assign.
    Scope string
    The scope in which this assignment should exist.
    IdentityId string
    The ID of the identity to authorize.
    ResourceId string
    The ID of the resource on which the role is to be assigned.
    RoleName string
    Name of the role to assign.
    Scope string
    The scope in which this assignment should exist.
    identityId String
    The ID of the identity to authorize.
    resourceId String
    The ID of the resource on which the role is to be assigned.
    roleName String
    Name of the role to assign.
    scope String
    The scope in which this assignment should exist.
    identityId string
    The ID of the identity to authorize.
    resourceId string
    The ID of the resource on which the role is to be assigned.
    roleName string
    Name of the role to assign.
    scope string
    The scope in which this assignment should exist.
    identity_id str
    The ID of the identity to authorize.
    resource_id str
    The ID of the resource on which the role is to be assigned.
    role_name str
    Name of the role to assign.
    scope str
    The scope in which this assignment should exist.
    identityId String
    The ID of the identity to authorize.
    resourceId String
    The ID of the resource on which the role is to be assigned.
    roleName String
    Name of the role to assign.
    scope String
    The scope in which this assignment should exist.

    Package Details

    Repository
    Azure DevOps pulumi/pulumi-azuredevops
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuredevops Terraform Provider.
    azuredevops logo
    Azure DevOps v3.4.0 published on Wednesday, Oct 30, 2024 by Pulumi