AccessPolicies interface
Interface representing a AccessPolicies.
Methods
create |
Create or update an access policy in the specified environment. |
delete(string, string, string, Access |
Deletes the access policy with the specified name in the specified subscription, resource group, and environment |
get(string, string, string, Access |
Gets the access policy with the specified name in the specified environment. |
list |
Lists all the available access policies associated with the environment. |
update(string, string, string, Access |
Updates the access policy with the specified name in the specified subscription, resource group, and environment. |
Method Details
createOrUpdate(string, string, string, AccessPolicyCreateOrUpdateParameters, AccessPoliciesCreateOrUpdateOptionalParams)
Create or update an access policy in the specified environment.
function createOrUpdate(resourceGroupName: string, environmentName: string, accessPolicyName: string, parameters: AccessPolicyCreateOrUpdateParameters, options?: AccessPoliciesCreateOrUpdateOptionalParams): Promise<AccessPolicyResource>
Parameters
- resourceGroupName
-
string
Name of an Azure Resource group.
- environmentName
-
string
The name of the Time Series Insights environment associated with the specified resource group.
- accessPolicyName
-
string
Name of the access policy.
- parameters
- AccessPolicyCreateOrUpdateParameters
Parameters for creating an access policy.
The options parameters.
Returns
Promise<AccessPolicyResource>
delete(string, string, string, AccessPoliciesDeleteOptionalParams)
Deletes the access policy with the specified name in the specified subscription, resource group, and environment
function delete(resourceGroupName: string, environmentName: string, accessPolicyName: string, options?: AccessPoliciesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
Name of an Azure Resource group.
- environmentName
-
string
The name of the Time Series Insights environment associated with the specified resource group.
- accessPolicyName
-
string
The name of the Time Series Insights access policy associated with the specified environment.
The options parameters.
Returns
Promise<void>
get(string, string, string, AccessPoliciesGetOptionalParams)
Gets the access policy with the specified name in the specified environment.
function get(resourceGroupName: string, environmentName: string, accessPolicyName: string, options?: AccessPoliciesGetOptionalParams): Promise<AccessPolicyResource>
Parameters
- resourceGroupName
-
string
Name of an Azure Resource group.
- environmentName
-
string
The name of the Time Series Insights environment associated with the specified resource group.
- accessPolicyName
-
string
The name of the Time Series Insights access policy associated with the specified environment.
- options
- AccessPoliciesGetOptionalParams
The options parameters.
Returns
Promise<AccessPolicyResource>
listByEnvironment(string, string, AccessPoliciesListByEnvironmentOptionalParams)
Lists all the available access policies associated with the environment.
function listByEnvironment(resourceGroupName: string, environmentName: string, options?: AccessPoliciesListByEnvironmentOptionalParams): Promise<AccessPolicyListResponse>
Parameters
- resourceGroupName
-
string
Name of an Azure Resource group.
- environmentName
-
string
The name of the Time Series Insights environment associated with the specified resource group.
The options parameters.
Returns
Promise<AccessPolicyListResponse>
update(string, string, string, AccessPolicyUpdateParameters, AccessPoliciesUpdateOptionalParams)
Updates the access policy with the specified name in the specified subscription, resource group, and environment.
function update(resourceGroupName: string, environmentName: string, accessPolicyName: string, accessPolicyUpdateParameters: AccessPolicyUpdateParameters, options?: AccessPoliciesUpdateOptionalParams): Promise<AccessPolicyResource>
Parameters
- resourceGroupName
-
string
Name of an Azure Resource group.
- environmentName
-
string
The name of the Time Series Insights environment associated with the specified resource group.
- accessPolicyName
-
string
The name of the Time Series Insights access policy associated with the specified environment.
- accessPolicyUpdateParameters
- AccessPolicyUpdateParameters
Request object that contains the updated information for the access policy.
The options parameters.
Returns
Promise<AccessPolicyResource>