# Get returns an applicationset by name

`GET /api/v1/applicationsets/{name}`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: apiKey, header Authorization. A token sent as `Authorization: Bearer <token>`. [API Docs](https://sourcey-argocd.pages.dev/developer-guide/api-docs/index.md#authorization) shows how to get one.

Parameters:

- `name` (path, string, required) - the applicationsets's name
  Type: string

- `appsetNamespace` (query, string, optional) - The application set namespace. Default empty is argocd control plane namespace.
  Type: string

Responses:

- 200: A successful response.

Content type: application/json

Type: object

Schema: [v1alpha1ApplicationSet](https://sourcey-argocd.pages.dev/api/models/v1alpha1applicationset/index.md)

- `metadata` (optional)
  Reference: [v1ObjectMeta](https://sourcey-argocd.pages.dev/api/models/v1objectmeta/index.md); Type: object
  
  ObjectMeta is metadata that all persisted resources must have, which includes all objects
  users must create.

- `spec` (optional)
  Reference: [v1alpha1ApplicationSetSpec](https://sourcey-argocd.pages.dev/api/models/v1alpha1applicationsetspec/index.md); Type: object
  
  ApplicationSetSpec represents a class of application set state.

- `status` (optional)
  Reference: [v1alpha1ApplicationSetStatus](https://sourcey-argocd.pages.dev/api/models/v1alpha1applicationsetstatus/index.md); Type: object

- default: An unexpected error response.

Content type: application/json

Type: object

Schema: [runtimeError](https://sourcey-argocd.pages.dev/api/models/runtimeerror/index.md)

- `code` (optional)
  Type: integer, int32

- `details` (optional)
  Type: array
  
  Items:
    Reference: [protobufAny](https://sourcey-argocd.pages.dev/api/models/protobufany/index.md); Type: object

- `error` (optional)
  Type: string

- `message` (optional)
  Type: string

## Examples

### cURL

```bash
curl -X GET 'https://argocd.example.com/api/v1/applicationsets/string' \
  -H 'Authorization: YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://argocd.example.com/api/v1/applicationsets/string', {
  method: 'GET',
  headers: {
    'Authorization': 'YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'https://argocd.example.com/api/v1/applicationsets/string',
    headers={
        'Authorization': 'YOUR_TOKEN',
    },
)
print(response.text)
```
