1. Packages
  2. Azure Native v2
  3. API Docs
  4. security
  5. getDevOpsPolicyAssignment
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.security.getDevOpsPolicyAssignment

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

DevOps Policy assignment resource. Azure REST API version: 2024-05-15-preview.

Using getDevOpsPolicyAssignment

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 getDevOpsPolicyAssignment(args: GetDevOpsPolicyAssignmentArgs, opts?: InvokeOptions): Promise<GetDevOpsPolicyAssignmentResult>
function getDevOpsPolicyAssignmentOutput(args: GetDevOpsPolicyAssignmentOutputArgs, opts?: InvokeOptions): Output<GetDevOpsPolicyAssignmentResult>
Copy
def get_dev_ops_policy_assignment(policy_assignment_id: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  security_connector_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDevOpsPolicyAssignmentResult
def get_dev_ops_policy_assignment_output(policy_assignment_id: Optional[pulumi.Input[str]] = None,
                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                  security_connector_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDevOpsPolicyAssignmentResult]
Copy
func LookupDevOpsPolicyAssignment(ctx *Context, args *LookupDevOpsPolicyAssignmentArgs, opts ...InvokeOption) (*LookupDevOpsPolicyAssignmentResult, error)
func LookupDevOpsPolicyAssignmentOutput(ctx *Context, args *LookupDevOpsPolicyAssignmentOutputArgs, opts ...InvokeOption) LookupDevOpsPolicyAssignmentResultOutput
Copy

> Note: This function is named LookupDevOpsPolicyAssignment in the Go SDK.

public static class GetDevOpsPolicyAssignment 
{
    public static Task<GetDevOpsPolicyAssignmentResult> InvokeAsync(GetDevOpsPolicyAssignmentArgs args, InvokeOptions? opts = null)
    public static Output<GetDevOpsPolicyAssignmentResult> Invoke(GetDevOpsPolicyAssignmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDevOpsPolicyAssignmentResult> getDevOpsPolicyAssignment(GetDevOpsPolicyAssignmentArgs args, InvokeOptions options)
public static Output<GetDevOpsPolicyAssignmentResult> getDevOpsPolicyAssignment(GetDevOpsPolicyAssignmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:security:getDevOpsPolicyAssignment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
The policy assignment Id.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
SecurityConnectorName
This property is required.
Changes to this property will trigger replacement.
string
The security connector name.
PolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
The policy assignment Id.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
SecurityConnectorName
This property is required.
Changes to this property will trigger replacement.
string
The security connector name.
policyAssignmentId
This property is required.
Changes to this property will trigger replacement.
String
The policy assignment Id.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
securityConnectorName
This property is required.
Changes to this property will trigger replacement.
String
The security connector name.
policyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
The policy assignment Id.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
securityConnectorName
This property is required.
Changes to this property will trigger replacement.
string
The security connector name.
policy_assignment_id
This property is required.
Changes to this property will trigger replacement.
str
The policy assignment Id.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
security_connector_name
This property is required.
Changes to this property will trigger replacement.
str
The security connector name.
policyAssignmentId
This property is required.
Changes to this property will trigger replacement.
String
The policy assignment Id.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
securityConnectorName
This property is required.
Changes to this property will trigger replacement.
String
The security connector name.

getDevOpsPolicyAssignment Result

The following output properties are available:

Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
Properties Pulumi.AzureNative.Security.Outputs.DevOpsPolicyAssignmentPropertiesResponse
Properties of the DevOps policy assignment resource.
SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Name string
The name of the resource
Properties DevOpsPolicyAssignmentPropertiesResponse
Properties of the DevOps policy assignment resource.
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
properties DevOpsPolicyAssignmentPropertiesResponse
Properties of the DevOps policy assignment resource.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name string
The name of the resource
properties DevOpsPolicyAssignmentPropertiesResponse
Properties of the DevOps policy assignment resource.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name str
The name of the resource
properties DevOpsPolicyAssignmentPropertiesResponse
Properties of the DevOps policy assignment resource.
system_data SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name String
The name of the resource
properties Property Map
Properties of the DevOps policy assignment resource.
systemData Property Map
Metadata pertaining to creation and last modification of the resource.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

DevOpsPolicyAssignmentPropertiesResponse

ProvisioningState This property is required. string

The provisioning state of the resource.

Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

ProvisioningStatusMessage This property is required. string
Gets the resource status message.
ProvisioningStatusUpdateTimeUtc This property is required. string
Gets the time when resource was last checked.
AssignedAt string
Gets or sets time when the assignment was created in UTC.
DescendantBehavior string
The behavior of a policy on descendant resources.
Policy Pulumi.AzureNative.Security.Inputs.DevOpsPolicyDescriptorResponse
Condensed information to identify a DevOps Policy resource.
ResourceId string
Gets or sets the Azure resource id.
ProvisioningState This property is required. string

The provisioning state of the resource.

Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

ProvisioningStatusMessage This property is required. string
Gets the resource status message.
ProvisioningStatusUpdateTimeUtc This property is required. string
Gets the time when resource was last checked.
AssignedAt string
Gets or sets time when the assignment was created in UTC.
DescendantBehavior string
The behavior of a policy on descendant resources.
Policy DevOpsPolicyDescriptorResponse
Condensed information to identify a DevOps Policy resource.
ResourceId string
Gets or sets the Azure resource id.
provisioningState This property is required. String

The provisioning state of the resource.

Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

provisioningStatusMessage This property is required. String
Gets the resource status message.
provisioningStatusUpdateTimeUtc This property is required. String
Gets the time when resource was last checked.
assignedAt String
Gets or sets time when the assignment was created in UTC.
descendantBehavior String
The behavior of a policy on descendant resources.
policy DevOpsPolicyDescriptorResponse
Condensed information to identify a DevOps Policy resource.
resourceId String
Gets or sets the Azure resource id.
provisioningState This property is required. string

The provisioning state of the resource.

Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

provisioningStatusMessage This property is required. string
Gets the resource status message.
provisioningStatusUpdateTimeUtc This property is required. string
Gets the time when resource was last checked.
assignedAt string
Gets or sets time when the assignment was created in UTC.
descendantBehavior string
The behavior of a policy on descendant resources.
policy DevOpsPolicyDescriptorResponse
Condensed information to identify a DevOps Policy resource.
resourceId string
Gets or sets the Azure resource id.
provisioning_state This property is required. str

The provisioning state of the resource.

Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

provisioning_status_message This property is required. str
Gets the resource status message.
provisioning_status_update_time_utc This property is required. str
Gets the time when resource was last checked.
assigned_at str
Gets or sets time when the assignment was created in UTC.
descendant_behavior str
The behavior of a policy on descendant resources.
policy DevOpsPolicyDescriptorResponse
Condensed information to identify a DevOps Policy resource.
resource_id str
Gets or sets the Azure resource id.
provisioningState This property is required. String

The provisioning state of the resource.

Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.

provisioningStatusMessage This property is required. String
Gets the resource status message.
provisioningStatusUpdateTimeUtc This property is required. String
Gets the time when resource was last checked.
assignedAt String
Gets or sets time when the assignment was created in UTC.
descendantBehavior String
The behavior of a policy on descendant resources.
policy Property Map
Condensed information to identify a DevOps Policy resource.
resourceId String
Gets or sets the Azure resource id.

DevOpsPolicyDescriptorResponse

PolicyId string
Gets or sets the policy GUID.
PolicyName string
Gets or sets the policy name.
PolicyType string
DevOps Policy resource types.
PolicyVersion string
Gets or sets the version.
PolicyId string
Gets or sets the policy GUID.
PolicyName string
Gets or sets the policy name.
PolicyType string
DevOps Policy resource types.
PolicyVersion string
Gets or sets the version.
policyId String
Gets or sets the policy GUID.
policyName String
Gets or sets the policy name.
policyType String
DevOps Policy resource types.
policyVersion String
Gets or sets the version.
policyId string
Gets or sets the policy GUID.
policyName string
Gets or sets the policy name.
policyType string
DevOps Policy resource types.
policyVersion string
Gets or sets the version.
policy_id str
Gets or sets the policy GUID.
policy_name str
Gets or sets the policy name.
policy_type str
DevOps Policy resource types.
policy_version str
Gets or sets the version.
policyId String
Gets or sets the policy GUID.
policyName String
Gets or sets the policy name.
policyType String
DevOps Policy resource types.
policyVersion String
Gets or sets the version.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
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.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
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.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
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.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
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.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi