swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector CollectorPolicies API schemes: - https tags: - name: CollectorPolicies paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies : get: tags: - CollectorPolicies description: Return list of Collector policies in a Azure Traffic Collector operationId: microsoftAzureCollectorpoliciesList x-ms-examples: List of Collection Policies: $ref: ./examples/CollectorPoliciesList.json parameters: - $ref: '#/parameters/resourceGroupName' - $ref: '#/parameters/subscriptionIdParameter' - $ref: '#/parameters/apiVersionParameter' - $ref: '#/parameters/azureTrafficCollectorNameParameter' responses: '200': description: Request successful. The operation returns a list of collector policies in a azure traffic collector. schema: $ref: '#/definitions/CollectorPolicyListResult' default: description: Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned. schema: $ref: '#/definitions/CloudError' x-ms-pageable: nextLinkName: nextLink summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Networkfunction Azuretrafficcollectors Azuretrafficcollectorname Collectorpolicies ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName} : get: tags: - CollectorPolicies operationId: microsoftAzureCollectorpoliciesGet description: Gets the collector policy in a specified Traffic Collector parameters: - $ref: '#/parameters/resourceGroupName' - $ref: '#/parameters/subscriptionIdParameter' - $ref: '#/parameters/apiVersionParameter' - $ref: '#/parameters/azureTrafficCollectorNameParameter' - $ref: '#/parameters/collectorPolicyNameParameter' responses: '200': description: Request successful. The operation returns the collector policy resource. schema: $ref: '#/definitions/CollectorPolicy' default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' x-ms-examples: Get Collection Policy: $ref: ./examples/CollectorPolicyGet.json summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Networkfunction Azuretrafficcollectors Azuretrafficcollectorname Collectorpolicies Collectorpolicyname put: tags: - CollectorPolicies description: Creates or updates a Collector Policy resource operationId: microsoftAzureCollectorpoliciesCreateorupdate parameters: - $ref: '#/parameters/resourceGroupName' - $ref: '#/parameters/subscriptionIdParameter' - $ref: '#/parameters/apiVersionParameter' - $ref: '#/parameters/azureTrafficCollectorNameParameter' - $ref: '#/parameters/collectorPolicyNameParameter' - name: parameters in: body required: true x-ms-client-flatten: true schema: $ref: '#/definitions/CollectorPolicy' description: The parameters to provide for the created Collector Policy. responses: '200': description: Update successful. The operation returns the resulting Collector Policy resource. schema: $ref: '#/definitions/CollectorPolicy' '201': description: Create successful. The operation returns the resulting Collector Policy resource. schema: $ref: '#/definitions/CollectorPolicy' default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' x-ms-examples: Create a collection policy: $ref: ./examples/CollectorPolicyCreate.json x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: azure-async-operation summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Networkfunction Azuretrafficcollectors Azuretrafficcollectorname Collectorpolicies Collectorpolicyname delete: tags: - CollectorPolicies operationId: microsoftAzureCollectorpoliciesDelete description: Deletes a specified Collector Policy resource. parameters: - $ref: '#/parameters/resourceGroupName' - $ref: '#/parameters/subscriptionIdParameter' - $ref: '#/parameters/apiVersionParameter' - $ref: '#/parameters/azureTrafficCollectorNameParameter' - $ref: '#/parameters/collectorPolicyNameParameter' responses: '200': description: Delete successful. '202': description: Accepted and the operation will complete asynchronously. '204': description: Request successful. Resource does not exist. default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' x-ms-examples: Delete Collection Policy: $ref: ./examples/CollectorPolicyDelete.json x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Networkfunction Azuretrafficcollectors Azuretrafficcollectorname Collectorpolicies Collectorpolicyname definitions: ProxyResource: type: object x-ms-azure-resource: true description: An azure resource object properties: id: type: string readOnly: true description: Azure resource Id type: type: string readOnly: true description: Azure resource type name: type: string readOnly: true description: Azure resource name CollectorPolicy: type: object properties: properties: x-ms-client-flatten: true $ref: '#/definitions/CollectorPolicyPropertiesFormat' description: Properties of the Collector Policy. etag: type: string readOnly: true description: A unique read-only string that changes whenever the resource is updated. systemData: allOf: - $ref: '#/definitions/SystemData' description: Metadata pertaining to creation and last modification of the resource. readOnly: true allOf: - $ref: '#/definitions/ProxyResource' description: Collector policy resource. CloudError: type: object x-ms-external: true properties: error: description: An error response from the service. $ref: '#/definitions/CloudErrorBody' description: An error response from the service. IngestionPolicyPropertiesFormat: type: object properties: ingestionType: type: string description: The ingestion type. enum: - IPFIX x-ms-enum: name: ingestionType modelAsString: true ingestionSources: type: array items: $ref: '#/definitions/IngestionSourcesPropertiesFormat' x-ms-identifiers: [] description: Ingestion Sources. description: Ingestion Policy properties. EmissionPoliciesPropertiesFormat: type: object properties: emissionType: type: string enum: - IPFIX description: Emission format type. x-ms-enum: name: emissionType modelAsString: true emissionDestinations: type: array items: $ref: '#/definitions/EmissionPolicyDestination' x-ms-identifiers: [] description: Emission policy destinations. description: Emission policy properties. ProvisioningState: type: string readOnly: true description: The current provisioning state. enum: - Succeeded - Updating - Deleting - Failed x-ms-enum: name: ProvisioningState modelAsString: true IngestionSourcesPropertiesFormat: type: object properties: sourceType: type: string description: Ingestion source type. enum: - Resource x-ms-enum: name: sourceType modelAsString: true resourceId: type: string description: Resource ID. description: Ingestion policy properties. EmissionPolicyDestination: type: object properties: destinationType: type: string enum: - AzureMonitor description: Emission destination type. x-ms-enum: name: destinationType modelAsString: true description: Emission policy destination properties. CloudErrorBody: type: object x-ms-external: true properties: code: type: string description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. message: type: string description: A message describing the error, intended to be suitable for display in a user interface. target: type: string description: The target of the particular error. For example, the name of the property in error. details: type: array items: $ref: '#/definitions/CloudErrorBody' x-ms-identifiers: [] description: A list of additional details about the error. description: An error response from the service. CollectorPolicyListResult: type: object properties: value: type: array items: $ref: '#/definitions/CollectorPolicy' description: A list of collection policies. nextLink: type: string description: The URL to get the next set of results. readOnly: true description: Response for the ListCollectorPolicies API service call. SystemData: description: Metadata pertaining to creation and last modification of the resource. type: object readOnly: true properties: createdBy: type: string description: The identity that created the resource. createdByType: type: string description: The type of identity that created the resource. enum: - User - Application - ManagedIdentity - Key x-ms-enum: name: createdByType modelAsString: true createdAt: type: string format: date-time description: The timestamp of resource creation (UTC). lastModifiedBy: type: string description: The identity that last modified the resource. lastModifiedByType: type: string description: The type of identity that last modified the resource. enum: - User - Application - ManagedIdentity - Key x-ms-enum: name: createdByType modelAsString: true CollectorPolicyPropertiesFormat: type: object properties: ingestionPolicy: $ref: '#/definitions/IngestionPolicyPropertiesFormat' description: Ingestion policies. emissionPolicies: type: array items: $ref: '#/definitions/EmissionPoliciesPropertiesFormat' x-ms-identifiers: [] description: Emission policies. provisioningState: readOnly: true $ref: '#/definitions/ProvisioningState' description: The provisioning state. description: Collection policy properties. parameters: collectorPolicyNameParameter: name: collectorPolicyName in: path description: Collector Policy Name required: true type: string x-ms-parameter-location: method azureTrafficCollectorNameParameter: name: azureTrafficCollectorName in: path description: Azure Traffic Collector name required: true type: string x-ms-parameter-location: method subscriptionIdParameter: name: subscriptionId in: path description: Azure Subscription ID. required: true type: string apiVersionParameter: name: api-version in: query description: Version of the API to be used with the client request. required: true type: string enum: - 2021-09-01-preview default: 2021-09-01-preview x-ms-enum: name: apiVersionParameter modelAsString: true resourceGroupName: name: resourceGroupName in: path description: The name of the resource group. required: true type: string x-ms-parameter-location: method x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'