This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.security.getAssignment
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get a specific standard assignment for the requested scope by resourceId Azure REST API version: 2021-08-01-preview.
Using getAssignment
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 getAssignment(args: GetAssignmentArgs, opts?: InvokeOptions): Promise<GetAssignmentResult>
function getAssignmentOutput(args: GetAssignmentOutputArgs, opts?: InvokeOptions): Output<GetAssignmentResult>def get_assignment(assignment_id: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetAssignmentResult
def get_assignment_output(assignment_id: Optional[pulumi.Input[str]] = None,
                   resource_group_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetAssignmentResult]func LookupAssignment(ctx *Context, args *LookupAssignmentArgs, opts ...InvokeOption) (*LookupAssignmentResult, error)
func LookupAssignmentOutput(ctx *Context, args *LookupAssignmentOutputArgs, opts ...InvokeOption) LookupAssignmentResultOutput> Note: This function is named LookupAssignment in the Go SDK.
public static class GetAssignment 
{
    public static Task<GetAssignmentResult> InvokeAsync(GetAssignmentArgs args, InvokeOptions? opts = null)
    public static Output<GetAssignmentResult> Invoke(GetAssignmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAssignmentResult> getAssignment(GetAssignmentArgs args, InvokeOptions options)
public static Output<GetAssignmentResult> getAssignment(GetAssignmentArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:security:getAssignment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AssignmentId string
- The security assignment key - unique key for the standard assignment
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- AssignmentId string
- The security assignment key - unique key for the standard assignment
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- assignmentId String
- The security assignment key - unique key for the standard assignment
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- assignmentId string
- The security assignment key - unique key for the standard assignment
- resourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- assignment_id str
- The security assignment key - unique key for the standard assignment
- resource_group_ strname 
- The name of the resource group within the user's subscription. The name is case insensitive.
- assignmentId String
- The security assignment key - unique key for the standard assignment
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
getAssignment Result
The following output properties are available:
- Id string
- Resource Id
- Name string
- Resource name
- SystemData Pulumi.Azure Native. Security. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type
- AdditionalData Pulumi.Azure Native. Security. Outputs. Assignment Properties Response Additional Data 
- Additional data about the assignment
- AssignedComponent Pulumi.Azure Native. Security. Outputs. Assigned Component Item Response 
- Component item with key as applied to this standard assignment over the given scope
- AssignedStandard Pulumi.Azure Native. Security. Outputs. Assigned Standard Item Response 
- Standard item with key as applied to this standard assignment over the given scope
- Description string
- description of the standardAssignment
- DisplayName string
- display name of the standardAssignment
- Effect string
- expected effect of this assignment (Disable/Exempt/etc)
- Etag string
- Entity tag is used for comparing two or more entities from the same requested resource.
- ExpiresOn string
- Expiration date of this assignment as a full ISO date
- Kind string
- Kind of the resource
- Location string
- Location where the resource is stored
- Metadata object
- The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- Scope string
- Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
- Dictionary<string, string>
- A list of key value pairs that describe the resource.
- Id string
- Resource Id
- Name string
- Resource name
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type
- AdditionalData AssignmentProperties Response Additional Data 
- Additional data about the assignment
- AssignedComponent AssignedComponent Item Response 
- Component item with key as applied to this standard assignment over the given scope
- AssignedStandard AssignedStandard Item Response 
- Standard item with key as applied to this standard assignment over the given scope
- Description string
- description of the standardAssignment
- DisplayName string
- display name of the standardAssignment
- Effect string
- expected effect of this assignment (Disable/Exempt/etc)
- Etag string
- Entity tag is used for comparing two or more entities from the same requested resource.
- ExpiresOn string
- Expiration date of this assignment as a full ISO date
- Kind string
- Kind of the resource
- Location string
- Location where the resource is stored
- Metadata interface{}
- The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- Scope string
- Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
- map[string]string
- A list of key value pairs that describe the resource.
- id String
- Resource Id
- name String
- Resource name
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type
- additionalData AssignmentProperties Response Additional Data 
- Additional data about the assignment
- assignedComponent AssignedComponent Item Response 
- Component item with key as applied to this standard assignment over the given scope
- assignedStandard AssignedStandard Item Response 
- Standard item with key as applied to this standard assignment over the given scope
- description String
- description of the standardAssignment
- displayName String
- display name of the standardAssignment
- effect String
- expected effect of this assignment (Disable/Exempt/etc)
- etag String
- Entity tag is used for comparing two or more entities from the same requested resource.
- expiresOn String
- Expiration date of this assignment as a full ISO date
- kind String
- Kind of the resource
- location String
- Location where the resource is stored
- metadata Object
- The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- scope String
- Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
- Map<String,String>
- A list of key value pairs that describe the resource.
- id string
- Resource Id
- name string
- Resource name
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Resource type
- additionalData AssignmentProperties Response Additional Data 
- Additional data about the assignment
- assignedComponent AssignedComponent Item Response 
- Component item with key as applied to this standard assignment over the given scope
- assignedStandard AssignedStandard Item Response 
- Standard item with key as applied to this standard assignment over the given scope
- description string
- description of the standardAssignment
- displayName string
- display name of the standardAssignment
- effect string
- expected effect of this assignment (Disable/Exempt/etc)
- etag string
- Entity tag is used for comparing two or more entities from the same requested resource.
- expiresOn string
- Expiration date of this assignment as a full ISO date
- kind string
- Kind of the resource
- location string
- Location where the resource is stored
- metadata any
- The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- scope string
- Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
- {[key: string]: string}
- A list of key value pairs that describe the resource.
- id str
- Resource Id
- name str
- Resource name
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Resource type
- additional_data AssignmentProperties Response Additional Data 
- Additional data about the assignment
- assigned_component AssignedComponent Item Response 
- Component item with key as applied to this standard assignment over the given scope
- assigned_standard AssignedStandard Item Response 
- Standard item with key as applied to this standard assignment over the given scope
- description str
- description of the standardAssignment
- display_name str
- display name of the standardAssignment
- effect str
- expected effect of this assignment (Disable/Exempt/etc)
- etag str
- Entity tag is used for comparing two or more entities from the same requested resource.
- expires_on str
- Expiration date of this assignment as a full ISO date
- kind str
- Kind of the resource
- location str
- Location where the resource is stored
- metadata Any
- The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- scope str
- Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
- Mapping[str, str]
- A list of key value pairs that describe the resource.
- id String
- Resource Id
- name String
- Resource name
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type
- additionalData Property Map
- Additional data about the assignment
- assignedComponent Property Map
- Component item with key as applied to this standard assignment over the given scope
- assignedStandard Property Map
- Standard item with key as applied to this standard assignment over the given scope
- description String
- description of the standardAssignment
- displayName String
- display name of the standardAssignment
- effect String
- expected effect of this assignment (Disable/Exempt/etc)
- etag String
- Entity tag is used for comparing two or more entities from the same requested resource.
- expiresOn String
- Expiration date of this assignment as a full ISO date
- kind String
- Kind of the resource
- location String
- Location where the resource is stored
- metadata Any
- The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- scope String
- Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
- Map<String>
- A list of key value pairs that describe the resource.
Supporting Types
AssignedComponentItemResponse   
- Key string
- unique key to a security assessment object
- Key string
- unique key to a security assessment object
- key String
- unique key to a security assessment object
- key string
- unique key to a security assessment object
- key str
- unique key to a security assessment object
- key String
- unique key to a security assessment object
AssignedStandardItemResponse   
- Id string
- Full resourceId of the Microsoft.Security/standard object
- Id string
- Full resourceId of the Microsoft.Security/standard object
- id String
- Full resourceId of the Microsoft.Security/standard object
- id string
- Full resourceId of the Microsoft.Security/standard object
- id str
- Full resourceId of the Microsoft.Security/standard object
- id String
- Full resourceId of the Microsoft.Security/standard object
AssignmentPropertiesResponseAdditionalData    
- ExemptionCategory string
- Exemption category of this assignment
- ExemptionCategory string
- Exemption category of this assignment
- exemptionCategory String
- Exemption category of this assignment
- exemptionCategory string
- Exemption category of this assignment
- exemption_category str
- Exemption category of this assignment
- exemptionCategory String
- Exemption category of this assignment
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi