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.47.1 published on Monday, Jun 24, 2024 by Pulumi
azure-native.management.getEntity
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.47.1 published on Monday, Jun 24, 2024 by Pulumi
List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.
Azure REST API version: 2021-04-01.
Other available API versions: 2018-01-01-preview, 2018-03-01-preview, 2019-11-01, 2020-02-01, 2020-05-01, 2020-10-01, 2023-04-01.
Using getEntity
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 getEntity(args: GetEntityArgs, opts?: InvokeOptions): Promise<GetEntityResult>
function getEntityOutput(args: GetEntityOutputArgs, opts?: InvokeOptions): Output<GetEntityResult>
def get_entity(filter: Optional[str] = None,
group_name: Optional[str] = None,
search: Optional[str] = None,
select: Optional[str] = None,
skip: Optional[int] = None,
skiptoken: Optional[str] = None,
top: Optional[int] = None,
view: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEntityResult
def get_entity_output(filter: Optional[pulumi.Input[str]] = None,
group_name: Optional[pulumi.Input[str]] = None,
search: Optional[pulumi.Input[str]] = None,
select: Optional[pulumi.Input[str]] = None,
skip: Optional[pulumi.Input[int]] = None,
skiptoken: Optional[pulumi.Input[str]] = None,
top: Optional[pulumi.Input[int]] = None,
view: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEntityResult]
func GetEntity(ctx *Context, args *GetEntityArgs, opts ...InvokeOption) (*GetEntityResult, error)
func GetEntityOutput(ctx *Context, args *GetEntityOutputArgs, opts ...InvokeOption) GetEntityResultOutput
> Note: This function is named GetEntity
in the Go SDK.
public static class GetEntity
{
public static Task<GetEntityResult> InvokeAsync(GetEntityArgs args, InvokeOptions? opts = null)
public static Output<GetEntityResult> Invoke(GetEntityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEntityResult> getEntity(GetEntityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:management:getEntity
arguments:
# arguments dictionary
The following arguments are supported:
- Filter string
- The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively.
- Group
Name string - A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'")
- Search string
- The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
- Select string
- This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken.
- Skip int
- Number of entities to skip over when retrieving results. Passing this in will override $skipToken.
- Skiptoken string
- Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- Top int
- Number of elements to return when retrieving results. Passing this in will override $skipToken.
- View string
- The view parameter allows clients to filter the type of data that is returned by the getEntities call.
- Filter string
- The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively.
- Group
Name string - A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'")
- Search string
- The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
- Select string
- This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken.
- Skip int
- Number of entities to skip over when retrieving results. Passing this in will override $skipToken.
- Skiptoken string
- Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- Top int
- Number of elements to return when retrieving results. Passing this in will override $skipToken.
- View string
- The view parameter allows clients to filter the type of data that is returned by the getEntities call.
- filter String
- The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively.
- group
Name String - A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'")
- search String
- The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
- select String
- This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken.
- skip Integer
- Number of entities to skip over when retrieving results. Passing this in will override $skipToken.
- skiptoken String
- Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- top Integer
- Number of elements to return when retrieving results. Passing this in will override $skipToken.
- view String
- The view parameter allows clients to filter the type of data that is returned by the getEntities call.
- filter string
- The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively.
- group
Name string - A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'")
- search string
- The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
- select string
- This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken.
- skip number
- Number of entities to skip over when retrieving results. Passing this in will override $skipToken.
- skiptoken string
- Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- top number
- Number of elements to return when retrieving results. Passing this in will override $skipToken.
- view string
- The view parameter allows clients to filter the type of data that is returned by the getEntities call.
- filter str
- The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively.
- group_
name str - A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'")
- search str
- The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
- select str
- This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken.
- skip int
- Number of entities to skip over when retrieving results. Passing this in will override $skipToken.
- skiptoken str
- Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- top int
- Number of elements to return when retrieving results. Passing this in will override $skipToken.
- view str
- The view parameter allows clients to filter the type of data that is returned by the getEntities call.
- filter String
- The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively.
- group
Name String - A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'")
- search String
- The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in. With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions. With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity. With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants. With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group. With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
- select String
- This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken.
- skip Number
- Number of entities to skip over when retrieving results. Passing this in will override $skipToken.
- skiptoken String
- Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- top Number
- Number of elements to return when retrieving results. Passing this in will override $skipToken.
- view String
- The view parameter allows clients to filter the type of data that is returned by the getEntities call.
getEntity Result
The following output properties are available:
- Count int
- Total count of records that match the filter
- Next
Link string - The URL to use for getting the next set of results.
- Value
List<Pulumi.
Azure Native. Management. Outputs. Entity Info Response> - The list of entities.
- Count int
- Total count of records that match the filter
- Next
Link string - The URL to use for getting the next set of results.
- Value
[]Entity
Info Response - The list of entities.
- count Integer
- Total count of records that match the filter
- next
Link String - The URL to use for getting the next set of results.
- value
List<Entity
Info Response> - The list of entities.
- count number
- Total count of records that match the filter
- next
Link string - The URL to use for getting the next set of results.
- value
Entity
Info Response[] - The list of entities.
- count int
- Total count of records that match the filter
- next_
link str - The URL to use for getting the next set of results.
- value
Sequence[Entity
Info Response] - The list of entities.
- count Number
- Total count of records that match the filter
- next
Link String - The URL to use for getting the next set of results.
- value List<Property Map>
- The list of entities.
Supporting Types
EntityInfoResponse
- Id string
- The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the entity. For example, 00000000-0000-0000-0000-000000000000
- Type string
- The type of the resource. For example, Microsoft.Management/managementGroups
- Display
Name string - The friendly name of the management group.
- Inherited
Permissions string - The users specific permissions to this item.
- Number
Of intChild Groups - Number of children is the number of Groups that are exactly one level underneath the current Group.
- Number
Of intChildren - Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group.
- Number
Of intDescendants - Parent
Pulumi.
Azure Native. Management. Inputs. Entity Parent Group Info Response - (Optional) The ID of the parent management group.
- Parent
Display List<string>Name Chain - The parent display name chain from the root group to the immediate parent
- Parent
Name List<string>Chain - The parent name chain from the root group to the immediate parent
- Permissions string
- The users specific permissions to this item.
- Tenant
Id string - The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000
- Id string
- The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the entity. For example, 00000000-0000-0000-0000-000000000000
- Type string
- The type of the resource. For example, Microsoft.Management/managementGroups
- Display
Name string - The friendly name of the management group.
- Inherited
Permissions string - The users specific permissions to this item.
- Number
Of intChild Groups - Number of children is the number of Groups that are exactly one level underneath the current Group.
- Number
Of intChildren - Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group.
- Number
Of intDescendants - Parent
Entity
Parent Group Info Response - (Optional) The ID of the parent management group.
- Parent
Display []stringName Chain - The parent display name chain from the root group to the immediate parent
- Parent
Name []stringChain - The parent name chain from the root group to the immediate parent
- Permissions string
- The users specific permissions to this item.
- Tenant
Id string - The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000
- id String
- The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the entity. For example, 00000000-0000-0000-0000-000000000000
- type String
- The type of the resource. For example, Microsoft.Management/managementGroups
- display
Name String - The friendly name of the management group.
- inherited
Permissions String - The users specific permissions to this item.
- number
Of IntegerChild Groups - Number of children is the number of Groups that are exactly one level underneath the current Group.
- number
Of IntegerChildren - Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group.
- number
Of IntegerDescendants - parent
Entity
Parent Group Info Response - (Optional) The ID of the parent management group.
- parent
Display List<String>Name Chain - The parent display name chain from the root group to the immediate parent
- parent
Name List<String>Chain - The parent name chain from the root group to the immediate parent
- permissions String
- The users specific permissions to this item.
- tenant
Id String - The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000
- id string
- The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name string
- The name of the entity. For example, 00000000-0000-0000-0000-000000000000
- type string
- The type of the resource. For example, Microsoft.Management/managementGroups
- display
Name string - The friendly name of the management group.
- inherited
Permissions string - The users specific permissions to this item.
- number
Of numberChild Groups - Number of children is the number of Groups that are exactly one level underneath the current Group.
- number
Of numberChildren - Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group.
- number
Of numberDescendants - parent
Entity
Parent Group Info Response - (Optional) The ID of the parent management group.
- parent
Display string[]Name Chain - The parent display name chain from the root group to the immediate parent
- parent
Name string[]Chain - The parent name chain from the root group to the immediate parent
- permissions string
- The users specific permissions to this item.
- tenant
Id string - The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000
- id str
- The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name str
- The name of the entity. For example, 00000000-0000-0000-0000-000000000000
- type str
- The type of the resource. For example, Microsoft.Management/managementGroups
- display_
name str - The friendly name of the management group.
- inherited_
permissions str - The users specific permissions to this item.
- number_
of_ intchild_ groups - Number of children is the number of Groups that are exactly one level underneath the current Group.
- number_
of_ intchildren - Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group.
- number_
of_ intdescendants - parent
Entity
Parent Group Info Response - (Optional) The ID of the parent management group.
- parent_
display_ Sequence[str]name_ chain - The parent display name chain from the root group to the immediate parent
- parent_
name_ Sequence[str]chain - The parent name chain from the root group to the immediate parent
- permissions str
- The users specific permissions to this item.
- tenant_
id str - The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000
- id String
- The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the entity. For example, 00000000-0000-0000-0000-000000000000
- type String
- The type of the resource. For example, Microsoft.Management/managementGroups
- display
Name String - The friendly name of the management group.
- inherited
Permissions String - The users specific permissions to this item.
- number
Of NumberChild Groups - Number of children is the number of Groups that are exactly one level underneath the current Group.
- number
Of NumberChildren - Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group.
- number
Of NumberDescendants - parent Property Map
- (Optional) The ID of the parent management group.
- parent
Display List<String>Name Chain - The parent display name chain from the root group to the immediate parent
- parent
Name List<String>Chain - The parent name chain from the root group to the immediate parent
- permissions String
- The users specific permissions to this item.
- tenant
Id String - The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000
EntityParentGroupInfoResponse
- Id string
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Id string
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- id String
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- id string
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- id str
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- id String
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
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.47.1 published on Monday, Jun 24, 2024 by Pulumi