WorkspaceProductPolicy interface
Interface representing a WorkspaceProductPolicy.
Methods
| create |
Creates or updates policy configuration for the Product. |
| delete(string, string, string, string, string, string, Workspace |
Deletes the policy configuration at the Product. |
| get(string, string, string, string, string, Workspace |
Get the policy configuration at the Product level. |
| get |
Get the ETag of the policy configuration at the Product level. |
| list |
Get the policy configuration at the Product level. |
Method Details
createOrUpdate(string, string, string, string, string, PolicyContract, WorkspaceProductPolicyCreateOrUpdateOptionalParams)
Creates or updates policy configuration for the Product.
function createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: string, parameters: PolicyContract, options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams): Promise<WorkspaceProductPolicyCreateOrUpdateResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- workspaceId
-
string
Workspace identifier. Must be unique in the current API Management service instance.
- productId
-
string
Product identifier. Must be unique in the current API Management service instance.
- policyId
-
string
The identifier of the Policy.
- parameters
- PolicyContract
The policy contents to apply.
The options parameters.
Returns
delete(string, string, string, string, string, string, WorkspaceProductPolicyDeleteOptionalParams)
Deletes the policy configuration at the Product.
function delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: string, ifMatch: string, options?: WorkspaceProductPolicyDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- workspaceId
-
string
Workspace identifier. Must be unique in the current API Management service instance.
- productId
-
string
Product identifier. Must be unique in the current API Management service instance.
- policyId
-
string
The identifier of the Policy.
- ifMatch
-
string
ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
The options parameters.
Returns
Promise<void>
get(string, string, string, string, string, WorkspaceProductPolicyGetOptionalParams)
Get the policy configuration at the Product level.
function get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: string, options?: WorkspaceProductPolicyGetOptionalParams): Promise<WorkspaceProductPolicyGetResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- workspaceId
-
string
Workspace identifier. Must be unique in the current API Management service instance.
- productId
-
string
Product identifier. Must be unique in the current API Management service instance.
- policyId
-
string
The identifier of the Policy.
The options parameters.
Returns
Promise<WorkspaceProductPolicyGetResponse>
getEntityTag(string, string, string, string, string, WorkspaceProductPolicyGetEntityTagOptionalParams)
Get the ETag of the policy configuration at the Product level.
function getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: string, options?: WorkspaceProductPolicyGetEntityTagOptionalParams): Promise<WorkspaceProductPolicyGetEntityTagHeaders>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- workspaceId
-
string
Workspace identifier. Must be unique in the current API Management service instance.
- productId
-
string
Product identifier. Must be unique in the current API Management service instance.
- policyId
-
string
The identifier of the Policy.
The options parameters.
Returns
listByProduct(string, string, string, string, WorkspaceProductPolicyListByProductOptionalParams)
Get the policy configuration at the Product level.
function listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductPolicyListByProductOptionalParams): Promise<PolicyCollection>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- workspaceId
-
string
Workspace identifier. Must be unique in the current API Management service instance.
- productId
-
string
Product identifier. Must be unique in the current API Management service instance.
The options parameters.
Returns
Promise<PolicyCollection>