Tags Interface
public interface Tags
Resource collection API of Tags.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Tags |
get(String scope)
Get all available tag keys for the defined scope. |
abstract
Response<Tags |
getWithResponse(String scope, Context context)
Get all available tag keys for the defined scope. |
Method Details
get
public abstract TagsResult get(String scope)
Get all available tag keys for the defined scope.
Parameters:
scope
- The scope associated with tags operations. This includes '/subscriptions/{subscriptionId}/' for
subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup
scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
Management Group scope..
Returns:
all available tag keys for the defined scope.
getWithResponse
public abstract Response
Get all available tag keys for the defined scope.
Parameters:
scope
- The scope associated with tags operations. This includes '/subscriptions/{subscriptionId}/' for
subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup
scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
scope,
'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
Management Group scope..
context
- The context to associate with this operation.
Returns:
all available tag keys for the defined scope.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for