azure-native.security.getAssignment
Explore with Pulumi AI
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:security:getAssignment
arguments:
# arguments dictionary
The following arguments are supported:
- Assignment
Id string The security assignment key - unique key for the standard assignment
- Resource
Group stringName The name of the resource group within the user's subscription. The name is case insensitive.
- Assignment
Id string The security assignment key - unique key for the standard assignment
- Resource
Group stringName The name of the resource group within the user's subscription. The name is case insensitive.
- assignment
Id String The security assignment key - unique key for the standard assignment
- resource
Group StringName The name of the resource group within the user's subscription. The name is case insensitive.
- assignment
Id string The security assignment key - unique key for the standard assignment
- resource
Group 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.
- assignment
Id String The security assignment key - unique key for the standard assignment
- resource
Group 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
- System
Data Pulumi.Azure Native. Security. Outputs. System Data Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
Resource type
- Additional
Data Pulumi.Azure Native. Security. Outputs. Assignment Properties Response Additional Data Additional data about the assignment
- Assigned
Component Pulumi.Azure Native. Security. Outputs. Assigned Component Item Response Component item with key as applied to this standard assignment over the given scope
- Assigned
Standard 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
- Display
Name 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.
- Expires
On 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
- System
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
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 string
description of the standardAssignment
- Display
Name 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.
- Expires
On 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
- system
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
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 String
description of the standardAssignment
- display
Name 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.
- expires
On 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
- system
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
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 string
description of the standardAssignment
- display
Name 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.
- expires
On 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
- system
Data Property Map Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
Resource type
- additional
Data Property Map Additional data about the assignment
- assigned
Component Property Map Component item with key as applied to this standard assignment over the given scope
- assigned
Standard Property Map Standard item with key as applied to this standard assignment over the given scope
- description String
description of the standardAssignment
- display
Name 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.
- expires
On 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
- Exemption
Category string Exemption category of this assignment
- Exemption
Category string Exemption category of this assignment
- exemption
Category String Exemption category of this assignment
- exemption
Category string Exemption category of this assignment
- exemption_
category str Exemption category of this assignment
- exemption
Category String Exemption category of this assignment
SystemDataResponse
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
- created
At string The timestamp of resource creation (UTC).
- created
By string The identity that created the resource.
- created
By stringType The type of identity that created the resource.
- last
Modified stringAt The timestamp of resource last modification (UTC)
- last
Modified stringBy The identity that last modified the resource.
- last
Modified 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.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0