These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.authorization.getPolicyDefinition
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
This operation retrieves the policy definition in the given subscription with the given name. API Version: 2020-09-01.
Using getPolicyDefinition
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 getPolicyDefinition(args: GetPolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetPolicyDefinitionResult>
function getPolicyDefinitionOutput(args: GetPolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetPolicyDefinitionResult>
def get_policy_definition(policy_definition_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyDefinitionResult
def get_policy_definition_output(policy_definition_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyDefinitionResult]
func LookupPolicyDefinition(ctx *Context, args *LookupPolicyDefinitionArgs, opts ...InvokeOption) (*LookupPolicyDefinitionResult, error)
func LookupPolicyDefinitionOutput(ctx *Context, args *LookupPolicyDefinitionOutputArgs, opts ...InvokeOption) LookupPolicyDefinitionResultOutput
> Note: This function is named LookupPolicyDefinition
in the Go SDK.
public static class GetPolicyDefinition
{
public static Task<GetPolicyDefinitionResult> InvokeAsync(GetPolicyDefinitionArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyDefinitionResult> Invoke(GetPolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyDefinitionResult> getPolicyDefinition(GetPolicyDefinitionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:authorization:getPolicyDefinition
arguments:
# arguments dictionary
The following arguments are supported:
- Policy
Definition stringName - The name of the policy definition to get.
- Policy
Definition stringName - The name of the policy definition to get.
- policy
Definition StringName - The name of the policy definition to get.
- policy
Definition stringName - The name of the policy definition to get.
- policy_
definition_ strname - The name of the policy definition to get.
- policy
Definition StringName - The name of the policy definition to get.
getPolicyDefinition Result
The following output properties are available:
- Id string
- The ID of the policy definition.
- Name string
- The name of the policy definition.
- Type string
- The type of the resource (Microsoft.Authorization/policyDefinitions).
- Description string
- The policy definition description.
- Display
Name string - The display name of the policy definition.
- Metadata object
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- Mode string
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- Parameters
Dictionary<string, Pulumi.
Azure Native. Authorization. Outputs. Parameter Definitions Value Response> - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- Policy
Rule object - The policy rule.
- Policy
Type string - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- Id string
- The ID of the policy definition.
- Name string
- The name of the policy definition.
- Type string
- The type of the resource (Microsoft.Authorization/policyDefinitions).
- Description string
- The policy definition description.
- Display
Name string - The display name of the policy definition.
- Metadata interface{}
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- Mode string
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- Parameters
map[string]Parameter
Definitions Value Response - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- Policy
Rule interface{} - The policy rule.
- Policy
Type string - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- id String
- The ID of the policy definition.
- name String
- The name of the policy definition.
- type String
- The type of the resource (Microsoft.Authorization/policyDefinitions).
- description String
- The policy definition description.
- display
Name String - The display name of the policy definition.
- metadata Object
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode String
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters
Map<String,Parameter
Definitions Value Response> - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy
Rule Object - The policy rule.
- policy
Type String - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- id string
- The ID of the policy definition.
- name string
- The name of the policy definition.
- type string
- The type of the resource (Microsoft.Authorization/policyDefinitions).
- description string
- The policy definition description.
- display
Name string - The display name of the policy definition.
- metadata any
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode string
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters
{[key: string]: Parameter
Definitions Value Response} - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy
Rule any - The policy rule.
- policy
Type string - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- id str
- The ID of the policy definition.
- name str
- The name of the policy definition.
- type str
- The type of the resource (Microsoft.Authorization/policyDefinitions).
- description str
- The policy definition description.
- display_
name str - The display name of the policy definition.
- metadata Any
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode str
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters
Mapping[str, Parameter
Definitions Value Response] - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy_
rule Any - The policy rule.
- policy_
type str - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- id String
- The ID of the policy definition.
- name String
- The name of the policy definition.
- type String
- The type of the resource (Microsoft.Authorization/policyDefinitions).
- description String
- The policy definition description.
- display
Name String - The display name of the policy definition.
- metadata Any
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode String
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters Map<Property Map>
- The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy
Rule Any - The policy rule.
- policy
Type String - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
Supporting Types
ParameterDefinitionsValueResponse
- Allowed
Values List<object> - The allowed values for the parameter.
- Default
Value object - The default value for the parameter if no value is provided.
- Metadata
Pulumi.
Azure Native. Authorization. Inputs. Parameter Definitions Value Response Metadata - General metadata for the parameter.
- Type string
- The data type of the parameter.
- Allowed
Values []interface{} - The allowed values for the parameter.
- Default
Value interface{} - The default value for the parameter if no value is provided.
- Metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- Type string
- The data type of the parameter.
- allowed
Values List<Object> - The allowed values for the parameter.
- default
Value Object - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- type String
- The data type of the parameter.
- allowed
Values any[] - The allowed values for the parameter.
- default
Value any - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- type string
- The data type of the parameter.
- allowed_
values Sequence[Any] - The allowed values for the parameter.
- default_
value Any - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- type str
- The data type of the parameter.
- allowed
Values List<Any> - The allowed values for the parameter.
- default
Value Any - The default value for the parameter if no value is provided.
- metadata Property Map
- General metadata for the parameter.
- type String
- The data type of the parameter.
ParameterDefinitionsValueResponseMetadata
- Assign
Permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- Description string
- The description of the parameter.
- Display
Name string - The display name for the parameter.
- Strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- Assign
Permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- Description string
- The description of the parameter.
- Display
Name string - The display name for the parameter.
- Strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions Boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description String
- The description of the parameter.
- display
Name String - The display name for the parameter.
- strong
Type String - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description string
- The description of the parameter.
- display
Name string - The display name for the parameter.
- strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign_
permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description str
- The description of the parameter.
- display_
name str - The display name for the parameter.
- strong_
type str - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions Boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description String
- The description of the parameter.
- display
Name String - The display name for the parameter.
- strong
Type String - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi